The reference document says that the left image erodes first and then dilates,that will get the image on the right. However, after I test the effect is not so good, I wonder if experts have any good way. Thank you.
1.The effect of the reference
2.Test results
3.Reference description
4.Data
5.Test code
clear all; clear; clc; load('TData.mat');
subplot(1,2,1) imagesc(imgx,imgy,imagdata); colormap(imagecolorset); colorbar('northoutside'); set(gca,'YDir','reverse') caxis(gca,[0.5 256])
se = strel('line',25,90);
erodedBW = imerode(imagdata,se); se = strel('line',11,90); erodedBW = imdilate(erodedBW,se); subplot(1,2,2) imagesc(imgx,imgy,erodedBW);
colormap(imagecolorset); colorbar('northoutside'); set(gca,'YDir','reverse')
0 Comments
Sign in to comment.