diff options
author | JinweiClarkChao <[email protected]> | 2015-08-25 16:48:29 +0800 |
---|---|---|
committer | JinweiClarkChao <[email protected]> | 2015-08-25 16:49:51 +0800 |
commit | c16ba61435b2dc94c9871cee77bd2291febbc7fe (patch) | |
tree | 6d0686a8c93288ce8767e9d0cc101f15b1feccb5 /DCP/dcp.cpp | |
parent | 66efed8b335610f9eae59fd3f52eccaffd7a6e0b (diff) | |
download | Dehaze-c16ba61435b2dc94c9871cee77bd2291febbc7fe.tar.gz |
add refs in README
Diffstat (limited to 'DCP/dcp.cpp')
-rw-r--r-- | DCP/dcp.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 @@ | |||
1 | #include "dcp_core.h" | 1 | #include "dcp_core.h" |
2 | 2 | ||
3 | using namespace cv::ximgproc; | ||
4 | |||
3 | void dehaze(IplImage *recover, IplImage *input) | 5 | void dehaze(IplImage *recover, IplImage *input) |
4 | { | 6 | { |
5 | int height = input->height; | 7 | int height = input->height; |
@@ -30,7 +32,18 @@ void dehaze(IplImage *recover, IplImage *input) | |||
30 | 32 | ||
31 | t.tic(); | 33 | t.tic(); |
32 | printf("GuidedFilterColor..."); | 34 | printf("GuidedFilterColor..."); |
35 | // GuidedFilterColor() is my own implementation of guided filter | ||
36 | // guidedFilter() is the implementation included in OpenCV 3.0 | ||
37 | // The result is almost the same, however my implementation is much more slower | ||
38 | // because I haven't spend much time optimizing the code efficiency. | ||
39 | |||
40 | // See http://research.microsoft.com/en-us/um/people/kahe/eccv10/ for more details | ||
41 | // ref: | ||
42 | // He, Kaiming, Jian Sun, and Xiaoou Tang. "Guided image filtering." | ||
43 | // Pattern Analysis and Machine Intelligence, IEEE Transactions on 35.6 (2013): 1397-1409. | ||
44 | |||
33 | GuidedFilterColor(refine_transmission, input, transmission, 1e-6, 60); | 45 | GuidedFilterColor(refine_transmission, input, transmission, 1e-6, 60); |
46 | // guidedFilter(cv::cvarrToMat(input), cv::cvarrToMat(transmission), cv::cvarrToMat(refine_transmission), 60, 1e-6); | ||
34 | t.toc(); | 47 | t.toc(); |
35 | 48 | ||
36 | t.tic(); | 49 | t.tic(); |