Skip to content

ForeverPs/haze-removal-using-dark-channel-prior-and-guided-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haze-Removal-Using-Dark-Channel-Prior

  • This project is mainly based on the work of Kaiming He who is my favorite researcher.

Contents

  1. Environments
  2. Packages
  3. Methods
  4. Usage
  5. Results
  6. References

Environments

 Python 3.0.0 or newer
  • I do suggest you use python 3 which is both stable and widely used nowadays.
  • The code also works well with python 2 since I just use numpy and matplotlib.

Packages

 numpy
 matplotlib
  • The requirement to the version of these packages is not strict, because we just use the basic function.
  • The tools used to read image is matplotlib which is in the order of RGB while cv2 is in the order of BGR.
  • I want to remind you that even the same operator can have different meanings between matrix and array in numpy.

Methods

  This method was mainly put forward by Kaiming He, and then it was published at CVPR 2009 which was rated as the best paper.

  This method help us get a fine haze removal image in a fast way with less cost compared with matting method.

  From paper, we can see that the matting laplacian is the inspiration of guided image filter, they are both ingenious and attractive.

Usage

  • I don't want to package the code so that you can see the details, and you are welcomed to give me suggestion.
  • The variables used in my code are as same as these in official papers so that you can get it easily.
  • The function haze_removal() contains each step used in image de-hazing, I wrote this just for convenience.

Results

  • Tiananmen Square : the original image comes from Kaiming He's paper


  • The Forbidden City : the original image comes from Kaiming He's paper


  • New York : the original image comes from Kaiming He's paper


  • HongKong : the original image comes from Kaiming He's paper


  • Airport : the original image is downloaded from internet


  • The Street : the original image is downloaded from internet


  • A380 is taking off : the original image is downloaded from internet


References

Author : Kaiming He, Jian Sun, Xiaoou Tang
Author : Anat Levin, Dani Lischinski, Yair Weiss

About

haze removal + dark channel prior + guided filter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages