This is an C++ implementation of the haze removal algorithm in paper "Single Image Haze Removal Using Dark Channel Prior" by Kaiming He.
-
OpenCV 2.4: follow the instructions on http://opencv.org/ or install via
sudo apt-get install libopencv-dev
-
CMake,
sudo apt-get install cmake
-
Clone this repository via
git clone https://github.com/RichardChe/hazeRemoval.git
-
Build
mkdir build && cd build cmake .. make
(NOTE: When your OpenCV installation was not in default directory, you need to set OpenCV_DIR in CMakeLists.txt)
-
In build/ :
./hazeRemovalBin ../example_img/river.png
you can use any image in example_img/, and you can see the original image and the corresponding result.