- 保邊濾波器(Edge Preserving Filter)是指在濾波過程中能夠有效的保留圖像中的邊緣信息的一類特殊濾波器。其中雙邊濾波器(Bilateral filter)、引導濾波器(Guided image filter)、加權最小二乘法濾波器(Weighted least square filter)為幾種比較廣為人知的保邊濾波器。
雙邊濾波
雙邊濾波很有名,使用廣泛,簡單的說就是一種同時考慮了像素空間差異與強度差異的濾波器,因此具有保持圖像邊緣的特性。
先看看我們熟悉的高斯濾波器
其中W是權重,i和j是像素索引,K是歸一化常量。公式中可以看出,權重只和像素之間的空間距離有關系,無論圖像的內容是什么,都有相同的濾波效果。
再來看看雙邊濾波器,它只是在原有高斯函數的基礎上加了一項,如下
其中 I 是像素的強度值,所以在強度差距大的地方(邊緣),權重會減小,濾波效應也就變小。總體而言,在像素強度變換不大的區域,雙邊濾波有類似於高斯濾波的效果,而在圖像邊緣等強度梯度較大的地方,可以保持梯度。
(1)中值濾波
中值濾波器 ( Median Filter ) C++ 實現
http://blog.csdn.net/hhygcy/article/details/4325462
http://blog.csdn.net/poem_qianmo/article/details/23184547
Fast Median and Bilateral Filtering
http://www.shellandslate.com/fastmedian.html
http://www.cee.hw.ac.uk/hipr/html/median.html
https://en.wikipedia.org/wiki/Median_filter
What is GIMP’s equivalent of Photoshop’s Median filter?
http://dossy.org/2007/08/what-is-gimps-equivalent-of-photoshops-median-filter/
Bilateral Filtering for Gray and Color Images
http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html
http://www.cnblogs.com/Imageshop/p/3406823.html
閱讀Real-Time O(1) Bilateral Filtering 一文的相關感受。
http://www.cnblogs.com/Imageshop/p/3416527.html
http://www.cnblogs.com/Imageshop/p/3576818.html
Guided Image Filtering
http://research.microsoft.com/en-us/um/people/kahe/eccv10/
http://blog.csdn.net/wds555/article/details/23176313
(4)雙指數邊緣平滑濾波器
Bi-Exponential Edge-Preserving Smoother
http://bigwww.epfl.ch/thevenaz/beeps/
http://www.cnblogs.com/Imageshop/p/3293300.html
http://www.cnblogs.com/Imageshop/p/4694540.html
(6)表面模糊
http://blog.csdn.net/maozefa/article/details/8270990
- reference:保邊濾波器(Edge Preserving Filters)