# MATLAB: Thin the boundary of objects of black & white images

image segmentation

I have a black and white image consists of very simple geometric shapes. the boundaries of the shapes are very thick. i want to thin them and skel. how can i do it?

originalBW = imread('circles.png');  se = strel('disk',11);        erodedBW = imerode(originalBW,se);imshow(originalBW), figure, imshow(erodedBW)