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

How to erode an image using matlab and extract its boundary?

Asked by arya on 14 Nov 2012
This question is closed and may reopen in the future if edited.

I need the matlab code to erode the given image using a 3x3 square structuring element and to display the eroded image. In structuring element, all the pixels are white and the central pixel is the representative point. Extract the boundary of the object by morphological operation and display it as a separate image. I'm not allowed to use any special Image Processing Toolbox commands other than imread, imshow, imagesc, and imwrite. Pls help me by posting the code asap.* Pls find the image below. Thank You.

http://www.google.com/imgres?hl=en&safe=active&tbo=d&biw=1288&bih=707&tbs=ic:gray&tbm=isch&tbnid=UwRw3aRnXwjZtM:&imgrefurl=http://www.davidairey.com/too-many-ideas/&docid=q4RVUXaBuEsxHM&imgurl=http://www.davidairey.com/images/illustration/white-circle-black-background.jpg&w=650&h=650&ei=wl-jUJiZCMOzrAfx2ICYDA&zoom=1&iact=rc&dur=1&sig=117516027805511210095&page=1&tbnh=139&tbnw=163&start=0&ndsp=15&ved=1t:429,r:2,s:0,i:79&tx=426&ty=241

arya

0 Answers

Contact us