diff options
author | JinweiClarkChao <[email protected]> | 2015-08-25 16:03:05 +0800 |
---|---|---|
committer | JinweiClarkChao <[email protected]> | 2015-08-25 16:49:50 +0800 |
commit | 66efed8b335610f9eae59fd3f52eccaffd7a6e0b (patch) | |
tree | a65d3ad57aa75d072b5f543fd5ea5c0a18a5c1ab /DCP/test.cpp | |
parent | f07885c1eb4c98dc52704517623b2e7df1ed616d (diff) | |
download | Dehaze-66efed8b335610f9eae59fd3f52eccaffd7a6e0b.tar.gz |
fix
Diffstat (limited to 'DCP/test.cpp')
-rw-r--r-- | DCP/test.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/DCP/test.cpp b/DCP/test.cpp index 7efeeb7..2af8719 100644 --- a/DCP/test.cpp +++ b/DCP/test.cpp | |||
@@ -2,13 +2,12 @@ | |||
2 | 2 | ||
3 | int main() | 3 | int main() |
4 | { | 4 | { |
5 | IplImage *input = cvLoadImage("input.png"); | 5 | IplImage *input = cvLoadImage("house-input.bmp"); |
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 | ||
9 | cvNamedWindow("Result"); | 9 | cvSaveImage("result.bmp", result); |
10 | cvShowImage("Result", result); | 10 | cvReleaseImage(&result); |
11 | cvWaitKey(); | 11 | cvReleaseImage(&input); |
12 | |||
13 | return 0; | 12 | return 0; |
14 | } \ No newline at end of file | 13 | } |