eokeeffe / FastSemiInverse-Dehazing

C++ OpenCV haze detection and restoration
2 stars 7 forks source link

Input arguments #2

Open iev6 opened 7 years ago

iev6 commented 7 years ago

Hi, can you tell me what the value of k,rho and sigma is? I wasn't able to find it in the code. Thanks!

eokeeffe commented 7 years ago

Heya so the values of k,rho and sigma are from the equations in the paper here https://pdfs.semanticscholar.org/273f/7ea6405102e10cde42075b3aed33991d43dd.pdf

Specifically k is for the layers of the image that will be used for the dehazing

rho is for the hue disparity threshold that will describe the pixel as haze or not (10 was the value used in the paper through experimentation).

There is no sigma but there is xi xi is the masking value for the layer regions, this should mask the haze areas to so that during air light estimate removal the image haze is progressively removed and the images blended into one.

Sadly this code only has the haze detection & air light estimation working, the actual dehazing part I never figured out how to do.