From: andrea on
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
From: Sean on
"andrea " <nacchio1983(a)yahoo.it> wrote in message <hvqfg3$1o1$1(a)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))