From 7ea064257f767373f3e2bc11779f7167a4565e7a Mon Sep 17 00:00:00 2001 From: TianZerL Date: Sun, 29 Mar 2020 18:13:25 +0800 Subject: [PATCH] Adjust source code structure --- Anime4K09/include/Anime4K.h | 3 +-- Anime4K09/include/threadpool.h | 2 +- Anime4K09/src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Anime4K09/include/Anime4K.h b/Anime4K09/include/Anime4K.h index 6e1e4a4c..10517498 100644 --- a/Anime4K09/include/Anime4K.h +++ b/Anime4K09/include/Anime4K.h @@ -23,11 +23,11 @@ class Anime4K void showInfo(); void showImg(); void process(); +private: void getGray(cv::InputArray img); void pushColor(cv::InputArray img); void getGradient(cv::InputArray img); void pushGradient(cv::InputArray img); -private: void changEachPixel(cv::InputArray _src, const std::function&& callBack); void getLightest(RGBA mc, RGBA a, RGBA b, RGBA c); void getAverage(RGBA mc, RGBA a, RGBA b, RGBA c); @@ -49,4 +49,3 @@ class Anime4K double sc, sg, zf, fps; bool fm, vm; }; - diff --git a/Anime4K09/include/threadpool.h b/Anime4K09/include/threadpool.h index 43fa6af8..453b2045 100644 --- a/Anime4K09/include/threadpool.h +++ b/Anime4K09/include/threadpool.h @@ -67,4 +67,4 @@ class ThreadPool }; std::shared_ptr pool; -}; \ No newline at end of file +}; diff --git a/Anime4K09/src/main.cpp b/Anime4K09/src/main.cpp index b56cf8ef..b28f9987 100644 --- a/Anime4K09/src/main.cpp +++ b/Anime4K09/src/main.cpp @@ -116,4 +116,4 @@ int main(int argc,char *argv[]) } return 0; -} \ No newline at end of file +}