Refinement of structure light skeleton
no vote
a=imread ('E:\ my picture \MATLAB.Png'), the picture readsB=rgb2gray (a); transformed into gray scale imagesLevel=graythresh (b);C=im2bw (B, level);Imshow (c); Otsu threshold segmentation> > K1=medfilt2 (C; [10 10]); median filtering H1=ones (5,5) /25;K2=imfilter (K1, H1),  ,  ,  ,  ,  ,  ,;Figure, imshow (K2); title ('d');> > e=bwmorph (D,'thin','n'); skeletal thinning n timesInShow (E);