Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.
/ GuidedFilter Public archive

Implementation and Comparison of Guided Filter

Notifications You must be signed in to change notification settings

clarkzjw/GuidedFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GuidedFilter

This repo contains different implementations of Guided Filter.

Update: I reported this to opencv_contrib maintainer, see issues here opencv/opencv_contrib#760

Why

Why would I set this repo?

Guided image filtering has been quite useful in computer vision since it was first introduced in 2010 by Kaiming He. And Guided Filter is now included in official OpenCV 3.0 as a new function.

I have been using guided image filtering for a while. At first I implemented it myself in C. After OpenCV 3.0 included Guided Filter, I tested it and compared the results with my own implementation and the MATLAB version offered at the author's website.

The OpenCV 3.0's official version of Guided Filter is quite fast. But I found that in some cases, e.g. some particular parameters, the OpenCV version might get wrong results. However, with the same parameters, the MATLAB version and my own implementation still get reasonable and correct results.

Here is one of the comparison below.

The guidance image

guide

The input image(a.k.a The image needs to be filtered)

src

The results of my own implementation

own

The MATLAB implementation by author

matlab

The OpenCV 3.0 implementation

opencv

This is not the only instance that the OpenCV version gets wrong results.

FYI, the parameters:

  • radius:3
  • eps:1e-6
  • using color image as the guidance

The code:

About

Implementation and Comparison of Guided Filter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published