MATLAB图像处理:使用形态学操作去除条纹
img = imread('6-1.bmp'); subplot(2,2,1); imshow(img); title('原始图像'); se = strel('disk',2); img_clean = bwareaopen(img,1); subplot(2,2,2); imshow(img_clean); title('清除单个孤立像素'); img_h = imclose(img_clean,se); subplot(2,2,3); imshow(img_h); title('以'H'形式破坏条纹'); img_gray = rgb2gray(img_h); img_bw = imbinarize(img_gray); img_bw = uint8(img_bw); subplot(2,2,4); imshow(img_bw); title('标记条纹');
原文地址: https://www.cveoy.top/t/topic/m0TX 著作权归作者所有。请勿转载和采集!