From c16ba61435b2dc94c9871cee77bd2291febbc7fe Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 25 Aug 2015 16:48:29 +0800 Subject: add refs in README --- DCP/dcp.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'DCP/dcp.cpp') diff --git a/DCP/dcp.cpp b/DCP/dcp.cpp index 716759c..97a597f 100644 --- a/DCP/dcp.cpp +++ b/DCP/dcp.cpp @@ -1,5 +1,7 @@ #include "dcp_core.h" +using namespace cv::ximgproc; + void dehaze(IplImage *recover, IplImage *input) { int height = input->height; @@ -30,7 +32,18 @@ void dehaze(IplImage *recover, IplImage *input) t.tic(); printf("GuidedFilterColor..."); + // GuidedFilterColor() is my own implementation of guided filter + // guidedFilter() is the implementation included in OpenCV 3.0 + // The result is almost the same, however my implementation is much more slower + // because I haven't spend much time optimizing the code efficiency. + + // See http://research.microsoft.com/en-us/um/people/kahe/eccv10/ for more details + // ref: + // He, Kaiming, Jian Sun, and Xiaoou Tang. "Guided image filtering." + // Pattern Analysis and Machine Intelligence, IEEE Transactions on 35.6 (2013): 1397-1409. + GuidedFilterColor(refine_transmission, input, transmission, 1e-6, 60); + // guidedFilter(cv::cvarrToMat(input), cv::cvarrToMat(transmission), cv::cvarrToMat(refine_transmission), 60, 1e-6); t.toc(); t.tic(); -- cgit v1.2.3