File Exchange

image thumbnail

Kuwahara filter

version 1.0.0.0 (1.03 KB) by Arthur Barnes
Kuwahara edge-preserving filter.

4 Downloads

Updated 01 Aug 2005

No License

This function implements the Kuwahara filter, a 2D nonlinear filter that reduces noise in an image while at the same time preserving edge content. A code example follows:

RGB = imread('saturn.png');
I = rgb2gray(RGB);
J = imnoise(I,'gaussian',0,0.005);
Y = kuwahara(J,5,true);

Cite As

Arthur Barnes (2020). Kuwahara filter (https://www.mathworks.com/matlabcentral/fileexchange/8171-kuwahara-filter), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (5)

Awesome.

Kaj W

Good but slow

Giovanni Motta

BUG: Output image is misaligned
FIX:
Line 68
Y(i,j) = m(k);
Should be
Y(i-PADDING,j-PADDING) = m(k);

Davide Bianconi

Good filter, but very slow.

Chaiwoot Boonyasiriwat

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux