This is a revised implementation the color restoration method described in:
If you use this code, please cite the appropriate paper.
@inproceedings{UnderwaterHL,
title={Diving into Haze-Lines: Color Restoration of Underwater Images},
author={Berman, D. and Treibitz, T. and Avidan, S.},
booktitle={Proceedings of the British Machine Vision Conference},
publisher = {BMVA Press}, year={2017}, }
The code requires MATLAB, and was tested on windows.
Run the following commands to initialize your local repository, and to fetch all of the dependencies:
git clone https://github.com/danaberman/underwater-hl.git
cd underwater-hl
git submodule init
git submodule update
- Download the code as a zip file.
- Download the toolbox from
https://github.com/pdollar/toolbox
intoutils/toolbox/
. - Download the toolbox from
https://github.com/pdollar/edges
intoutils/edges/
.
- Change MATLAB's directory to the folder the code was extracted to.
- Run the file main_underwater_restoration.m in order to see the algorithm's perfomance on the attached images.
If you wish to use a raw image as input, please download Adobe DNG Converter and convert the raw image to a linear decompressed according to these settings:
Dana Berman, [email protected]
The software code of the non-local image dehazing algorithm is provided for non-commercial use under the attached LICENSE.md