aboutsummaryrefslogblamecommitdiff
blob: df4aad95d6d5447276477e873e14445f5e565380 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

















                                                                                               
#include "dcp.h"

void dehaze(IplImage *recover, IplImage *input)
{
	int height = input->height;
	int width = input->width;
	
	IplImage *darkchannel = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);
	IplImage *transmission = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);
	IplImage *refine_transmission = cvCreateImage(cvSize(width, height), IPL_DEPTH_8U, 1);

	int darkchannelradius = MIN(width, height) * 0.02;

	CalcDarkChannel(darkchannel, input, darkchannelradius);



}
Powered by cgit v1.2.3 (git 2.41.0)