4.25

4.2 | 4 ratings Rate this file 18 Downloads (last 30 days) File Size: 2.14 KB File ID: #8171
image thumbnail

Kuwahara filter

by Arthur Barnes

 

01 Aug 2005 (Updated 01 Aug 2005)

Kuwahara edge-preserving filter.

| Watch this File

File Information
Description

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

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.0.4 (R14SP2)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
02 Nov 2005 Chaiwoot Boonyasiriwat  
12 Dec 2005 Davide Bianconi

Good filter, but very slow.

10 Jun 2006 Giovanni Motta

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

23 Oct 2006 Kaj W

Good but slow

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
filtering Arthur Barnes 22 Oct 2008 07:54:42
kuwahara filter edge preserving Arthur Barnes 22 Oct 2008 07:54:42
kuwahara filter edge preserving vaishnavi poharkar 27 Apr 2009 01:25:28

Contact us at files@mathworks.com