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. I need the code very urgently. Pls help.
Pls find the image in the file attached.