aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJinwei Zhao <[email protected]>2016-01-21 20:16:56 +0800
committerJinwei Zhao <[email protected]>2016-01-21 20:16:56 +0800
commite5728964cae9149eeaf0d16c2c0bdbacd2dcffc7 (patch)
tree52f7e0b49b94ae52a6974150bf4921f8c71c3580
parent6d0225591ca01e2d4dcf644751b775bb4ea3d656 (diff)
downloadGuidedFilter-e5728964cae9149eeaf0d16c2c0bdbacd2dcffc7.tar.gz
update README with details
-rw-r--r--README.md40
1 files changed, 39 insertions, 1 deletions
diff --git a/README.md b/README.md
index 9102d0e..ed27c8c 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,40 @@
1# GuidedFilter 1# GuidedFilter
2C++ Implementation and Comparison of Guided Filter 2This repo contains different implementations of [Guided Filter](http://research.microsoft.com/en-us/um/people/kahe/eccv10/).
3
4## Why
5Why would I set this repo?
6
7Guided 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](http://docs.opencv.org/master/da/d17/group__ximgproc__filters.html#ga86813d59f8452a9600e979c6287805f5&gsc.tab=0) as a new function.
8
9I 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](http://research.microsoft.com/en-us/um/people/kahe/eccv10/).
10
11The 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.
12
13Here is one of the comparison below.
14
15### The guidance image
16![guide](images/guide.png)
17
18### The input image(a.k.a The image needs to be filtered)
19![src](images/src.bmp)
20
21### The results of my own implementation
22![own](images/own.bmp)
23
24### The MATLAB implementation by author
25![matlab](images/matlab.bmp)
26
27## The OpenCV 3.0 implementation
28![opencv](images/opencv.bmp)
29
30This is not the only instance that the OpenCV version gets wrong results.
31
32FYI, the parameters:
33+ radius:3
34+ eps:1e-6
35+ using color image as the guidance
36
37The code:
38+ [My own implementation](GuidedFilter/GuidedFilter/guidedfilter.cpp)
39+ [MATLAB codes by author](MATLAB/guidedfilter_color.m)
40+ [OpenCV 3.0 source code](https://github.com/Itseez/opencv_contrib/blob/master/modules/ximgproc/src/guided_filter.cpp) \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)