, , imerode . , . , "" . .
%if your image isn't already binary turn it into a logical array
bwim = im2bw(im);
%13 came by trial and error, you can also play with the shape and use something
%besides a disk
thick = imerode(bwim,strel('disk',13));
%the infinite means do untill no changes occur. we use ~thick becasue thin
%works on 1 pixels, not 0's. we then invert the output of bwmorph to get our
%image back to normal (0 foregroun 1 background)
thinned = ~bwmorph(~thick,'thin',inf);
figure(1);imshow(bwim);title('original');
figure(2);imshow(thick);title('after erosion');
figure(3);imshow(thinned);title('after thining');

, , . (, - ) . , ( ), . , , .