Skip to content

chattob/Haze_removal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Haze_removal

Single Image Haze Removal Using Dark Channel Prior (paper implementation)

References

The original algorithm is described in https://www.robots.ox.ac.uk/~vgg/rg/papers/hazeremoval.pdf

This implementation uses guided filtering instead of soft-matting in order to improve computationnal efficiency.

Guided filters were introduced in http://kaiminghe.com/publications/eccv10guidedfilter.pdf

Usage

The algorithm tends to be noisy, especially when the input image contains regions with zero transmission (such as sky).

A trade-off between amount of dehazing and noise must be found by adapting the value of t0 (0.3 is a good value for images with sky regions).

void recoverSceneRadiance(cv::Mat src, cv::Mat& radiance, int patchSize, float t0)

Sample Results

Sample 1

Source image:

alt text

Dehazed result:

alt text

Transmission map:

alt text

Filtered transmission map:

alt text

Sample 2

Source image:

alt text

Dehazed result:

alt text

Transmission map:

alt text

Filtered transmission map:

alt text

About

Single Image Haze Removal Using Dark Channel Prior (paper implementation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors