diff options
-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 | |||