Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
5x5 median filter

Subject: 5x5 median filter

From: Ernesto Molina

Date: 6 Dec, 2006 23:59:44

Message: 1 of 2

Hi
i'm trying to apply a 5X5-pixel median filter to some images
(satellite) and don't know how to use the function in a matrix.
many thanks

Subject: 5x5 median filter

From: Dave Robinson

Date: 7 Dec, 2006 04:46:06

Message: 2 of 2

Try the following perhaps

MyMatrix = imread('myimagefile.jpg');
Filtered_image = medfilt2(MyMatrix,[5,5]);

This will apply a 5 x 5 median filter to a matrix corresponding to an
image read in from an image file.

Hope this helps

Regards

Dave Robinson

ernesto molina wrote:
>
>
> Hi
> i'm trying to apply a 5X5-pixel median filter to some images
> (satellite) and don't know how to use the function in a matrix.
> many thanks

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us