简体   繁体   English

Matlab中未定义的函数错误

[英]Undefined function error in matlab

function im = Thresholding(I)
[r,c] = size(I);
im = zeros(r, c);
for i = 1:r
for j = 1:c
    if I(i,j)> 105
        im(i,j) = 1;
    end
end
end
im = bwareopen(im, 5);
im = imfill(im, 'holes');
end 

I'm trying to use this code and I got this error " Undefined function or method 'bwareopen' for input arguments of type 'double'"please help me 我正在尝试使用此代码,但收到此错误“类型为'double'的输入参数的未定义函数或方法'bwareopen'”请帮助我

You're calling bwareopen but you should be calling bwareaopen . 您正在致电bwareopen但您应该致电bwareaopen The latter has an extra a. 后者有一个额外的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM