aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'DCP/dcp.cpp')
-rw-r--r--DCP/dcp.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/DCP/dcp.cpp b/DCP/dcp.cpp
new file mode 100644
index 0000000..df4aad9
--- /dev/null
+++ b/DCP/dcp.cpp
@@ -0,0 +1,18 @@
1#include "dcp.h"
2
3void dehaze(IplImage *recover, IplImage *input)
4{
5 int height = input->height;
6 int width = input->width;
7
8 IplImage *darkchannel = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);
9 IplImage *transmission = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);
10 IplImage *refine_transmission = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);
11
12 int darkchannelradius = MIN(width, height) * 0.02;
13
14 CalcDarkChannel(darkchannel, input, darkchannelradius);
15
16
17
18}
Powered by cgit v1.2.3 (git 2.41.0)