File Exchange

image thumbnail

Kuwahara filter

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

2 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);

Comments and Ratings (4)

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

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.


Learn About Live Editor