Skip to content

An c++ implementation of 《single image haze removal using dark channel prior》

License

Notifications You must be signed in to change notification settings

ZQPei/Haze_Removal_cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An c++ implementation of 《single image haze removal using dark channel prior》

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages