You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use this code, please cite the appropriate paper.
bibtex
@inproceedings{NonLocalImageDehazing,
title={Non-Local Image Dehazing},
author={Berman, D. and Treibitz, T. and Avidan, S.},
booktitle={IEEE Conf. CVPR},
year={2016},
}
@inproceedings{AirlightEstimation,
title={Air-light Estimation Using Haze-Lines},
author={Berman, D. and Treibitz, T. and Avidan, S.},
booktitle={IEEE Conf. ICCP},
year={2017},
}
Getting Started
System Requirements:
The code requires MATLAB, and was tested on windows.
Demo
Change MATLAB's directory to the folder the code was extracted to.
Run the file demo_non_local_dehazing.m in order to see the algorithm's
perfomance on the attached images.
The gamma value is required since the image formation model applies to the linear images, where each pixel's value is directly related to the number of photons received at that location on the sensor.
A non-linear tone-mapping is applied in camera and most of the images we see are not linear. The gamma value approximates the inverse mapping of the pixels' values to linear.
Despite that, for new images, I recommend trying gamma=1 first (this is the default). It often works even though it is not physically accurate.