diff options
author | JinweiClarkChao <[email protected]> | 2015-08-25 16:54:38 +0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2018-07-14 00:30:44 +0800 |
commit | 694c907ffa175740bf0fd6f402c7889cc1c8098e (patch) | |
tree | be722be5fb00e353300b485cd9e46a465bfc597d | |
parent | c16ba61435b2dc94c9871cee77bd2291febbc7fe (diff) | |
download | Dehaze-694c907ffa175740bf0fd6f402c7889cc1c8098e.tar.gz |
-rw-r--r-- | DCP/test.cpp | 2 | ||||
-rw-r--r-- | README.md | 7 | ||||
-rw-r--r-- | samples/input.jpg | bin | 0 -> 143834 bytes | |||
-rw-r--r-- | samples/result.bmp | bin | 0 -> 540054 bytes |
4 files changed, 7 insertions, 2 deletions
diff --git a/DCP/test.cpp b/DCP/test.cpp index 7587c35..71f29fc 100644 --- a/DCP/test.cpp +++ b/DCP/test.cpp | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | int main() | 3 | int main() |
4 | { | 4 | { |
5 | IplImage *input = cvLoadImage("input.png"); | 5 | IplImage *input = cvLoadImage("input.jpg"); |
6 | IplImage *result = cvCreateImage(cvGetSize(input), IPL_DEPTH_8U, 3); | 6 | IplImage *result = cvCreateImage(cvGetSize(input), IPL_DEPTH_8U, 3); |
7 | dehaze(result, input); | 7 | dehaze(result, input); |
8 | 8 | ||
@@ -4,6 +4,11 @@ Implementation of Single Image Haze Removal Using Dark Channel Prior. | |||
4 | 4 | ||
5 | Dependence: OpenCV 3.0 | 5 | Dependence: OpenCV 3.0 |
6 | 6 | ||
7 | Results | ||
8 | |||
9 | ![input](./samples/input.jpg) | ||
10 | ![result](./samples/result.bmp) | ||
11 | |||
7 | ### Ref | 12 | ### Ref |
8 | + He K, Sun J, Tang X. Single image haze removal using dark channel prior[J]. Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2011, 33(12): 2341-2353. | 13 | + He K, Sun J, Tang X. Single image haze removal using dark channel prior[J]. Pattern Analysis and Machine Intelligence, IEEE Transactions on, 2011, 33(12): 2341-2353. |
9 | + He, Kaiming, Jian Sun, and Xiaoou Tang. "Guided image filtering." Pattern Analysis and Machine Intelligence, IEEE Transactions on 35.6 (2013): 1397-1409. \ No newline at end of file | 14 | + He, Kaiming, Jian Sun, and Xiaoou Tang. "Guided image filtering." Pattern Analysis and Machine Intelligence, IEEE Transactions on 35.6 (2013): 1397-1409. |
diff --git a/samples/input.jpg b/samples/input.jpg new file mode 100644 index 0000000..d369d87 --- /dev/null +++ b/samples/input.jpg | |||
Binary files differ | |||
diff --git a/samples/result.bmp b/samples/result.bmp new file mode 100644 index 0000000..052c75f --- /dev/null +++ b/samples/result.bmp | |||
Binary files differ | |||