你好,请问怎么去除图像处理后的毛刺呀
%骨架提取
clear,clc,close all;
Image = rgb2gray(imread('1.bmp'));
BW = imbinarize(Image);
result1 = bwmorph(BW,'thin',10);
result2 = bwmorph(BW,'thin',Inf);
subplot(131),imshow(BW),title('二值图像');
subplot(132),imshow(result1),title('细化十次');
subplot(133),imshow(result2),title('细化至只有一个像素宽');
跑完这个程序后出来的图片如上