diff options
Diffstat (limited to 'DCP/test.cpp')
-rw-r--r-- | DCP/test.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/DCP/test.cpp b/DCP/test.cpp new file mode 100644 index 0000000..7efeeb7 --- /dev/null +++ b/DCP/test.cpp | |||
@@ -0,0 +1,14 @@ | |||
1 | #include "dcp.h" | ||
2 | |||
3 | int main() | ||
4 | { | ||
5 | IplImage *input = cvLoadImage("input.png"); | ||
6 | IplImage *result = cvCreateImage(cvGetSize(input), IPL_DEPTH_8U, 3); | ||
7 | dehaze(result, input); | ||
8 | |||
9 | cvNamedWindow("Result"); | ||
10 | cvShowImage("Result", result); | ||
11 | cvWaitKey(); | ||
12 | |||
13 | return 0; | ||
14 | } \ No newline at end of file | ||