From 66efed8b335610f9eae59fd3f52eccaffd7a6e0b Mon Sep 17 00:00:00 2001 From: JinweiClarkChao Date: Tue, 25 Aug 2015 16:03:05 +0800 Subject: fix --- DCP/test.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'DCP/test.cpp') 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 @@ int main() { - IplImage *input = cvLoadImage("input.png"); + IplImage *input = cvLoadImage("house-input.bmp"); IplImage *result = cvCreateImage(cvGetSize(input), IPL_DEPTH_8U, 3); dehaze(result, input); - cvNamedWindow("Result"); - cvShowImage("Result", result); - cvWaitKey(); - + cvSaveImage("result.bmp", result); + cvReleaseImage(&result); + cvReleaseImage(&input); return 0; -} \ No newline at end of file +} -- cgit v1.2.3