Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1016 Bytes

README.md

File metadata and controls

52 lines (35 loc) · 1016 Bytes

Haze Removal

Introduction

This is an simple implemention of "single image haze removal using dark channel prior" by kaiming He, who wins the CVPR09 best paper.

Parameters by default

  • radius=7
  • omega=0.95
  • t0=0.1
  • r=60
  • eps=0.001

Dependencies

  • opencv>=2.4
  • g++ (Visual Studio is also fine, but I will not show how to configure VS project here)

Compile

cd cpp_code/src
g++ main.cpp hazeremoval.cpp guidedfilter.cpp -o ../dehaze `pkg-config --libs --cflags opencv`

Run

Before running, you should check whether your LD_LIBRARY_PATH containing your opencv lib path!

cd ..
./dehaze [your image path]

DEMO

References

  • paper: Single Image Haze Removal using Dark Channel Prior
  • paper: Guided Image Fltering