computes a depth map by estimating the haze in the picture. follows Single image haze removal using dark channel prior, He, Sun, Tang, CVPR 2009. this works best for outdoors/landscape images where the airlight integral is mostly constant throughout the image.
input linear scene referred data: the hazy landscape imageoutput the image with haze removeddepth the estimated optical thickness of the imageradius the blur radius used for the guided depth mask creationepsilon the edge threshold used for the guided depth mask creationstrength strength of the dehazing effect. anything lower than 1.0 will leave residual haze in the distance.t0 minimum optical thickness for numerical safety. a value greater than zero limits the effect of dehazing. usually you don't have to touch this.haze the airlight colour of the haze to remove. set to something like the brightest haze contribution in the input image.