This is an simple implemention of "single image haze removal using dark channel prior" by kaiming He, who wins the CVPR09 best paper.
- radius=7
- omega=0.95
- t0=0.1
- r=60
- eps=0.001
- opencv>=2.4
- g++ (Visual Studio is also fine, but I will not show how to configure VS project here)
cd cpp_code/src
g++ main.cpp hazeremoval.cpp guidedfilter.cpp -o ../dehaze `pkg-config --libs --cflags opencv`
Before running, you should check whether your LD_LIBRARY_PATH containing your opencv lib path!
cd ..
./dehaze [your image path]
- paper: Single Image Haze Removal using Dark Channel Prior
- paper: Guided Image Fltering