aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinweiClarkChao <[email protected]>2015-08-24 10:15:00 +0800
committerJinweiClarkChao <[email protected]>2015-08-24 10:15:00 +0800
commit17fbf4355747b1ceb9caca120aec9830a44621cf (patch)
tree6ec188fe59b0ae8c65a812765ef8f621ecf87ec3 /DCP/dcp.cpp
downloadDehaze-17fbf4355747b1ceb9caca120aec9830a44621cf.tar.gz
init
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)