Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 MATLAB 文档中,我可以在这里看到干净的形态学操作。问题是我无法使用它。我知道如何使用结构化元素,但是如果我输入imclean(img,SE)or clean(img,SE),我会得到一个未定义函数的错误。该功能应该如何使用?
imclean(img,SE)
clean(img,SE)
Matlab中没有调用函数clean或函数。imclean
clean
imclean
Matlab 有一个用于二进制图像的通用形态函数 ( bwmorph),它将字符串作为要执行的操作的输入。所以你想做的是
bwmorph
bwmorph(img,'clean')
(这是基于 R2013b - 但这也适用于其他最新版本 AFAIK)