【发布时间】:2020-02-28 00:58:06
【问题描述】:
我使用以下函数编写了几行代码:
adaptivethreshold(IM,ws,c)
它给了我一个面具bw。我将此蒙版与我的原始图像bb 相乘并显示结果。
clear
clc
bb=dicomread('30421573');
figure(1)
imagesc(bb)
bw=adaptivethreshold(bb,50,128);
imaa=double(bw).*double(bb);
figure(2)
image(imaa)
它似乎没有为我的图像提供任何遮罩。有什么方法可以从结果中提取那些黄色部分?
【问题讨论】:
-
你在使用this File Exchange function吗?在你的问题中提到这一点很重要。 Image Processing Toolbox 有
adaptthresh,明显不同。
标签: matlab function image-processing image-segmentation image-thresholding