阈值分割方法总结
根据每幅图片的平均亮度入手
load('va.mat', 'I_h_all')
load('va.mat', 'I_ave')
load('va.mat', 'M_Ih')
figure;imshow(I_h_all(:,:,1))
figure;imshow(M_Ih,[])
figure;imshow(I_ave,[])
figure;imshow(I_ave>20)
figure;imshow(I_ave>50)
Mask=I_ave>50;
Mask=bwareaopen(Mask,10000);figure;imshow(Mask)
Mask=bwareaopen(Mask,100000);figure;imshow(Mask)
load('phase_unwrap.mat', 'phase_v')
figure;imshow(phase_v,[])
colormap default
phase_v(~Mask)=nan;
figure;imshow(phase_v,[])
colormap default
去除边界
Mask=I_ave>32;
>> L=bwlabel(Mask);
>> figure;imshow(L)
>> figure;imshow(L==6)
根据每幅图的最高亮度入手
l
oad va 'M_Ih'
>> Ibw=M_Ih>12;
>> Ibw=bwareaopen(Ibw,10000)