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:
Use function imerode

Subject: Use function imerode

From: andrea

Date: 22 Jun, 2010 13:57:23

Message: 1 of 2

Hi,

I have a grayscale image. I want erode this image of 1 pixel.
Which kind of morphological structur do you recommend me to use?


Thanks for help me

Andrea

Subject: Use function imerode

From: Sean

Date: 22 Jun, 2010 14:15:21

Message: 2 of 2

"andrea " <nacchio1983@yahoo.it> wrote in message <hvqfg3$1o1$1@fred.mathworks.com>...
> Hi,
>
> I have a grayscale image. I want erode this image of 1 pixel.
> Which kind of morphological structur do you recommend me to use?
>
>
> Thanks for help me
>
> Andrea

If you want one pixel off each edge use a disk.
imerode(logical([0 0 0 0 0;0 1 1 1 0; 0 1 1 1 0; ;0 1 1 1 0;0 0 0 0 0]),strel('disk',1))

Tags for 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