matlab中SE = strel('ball',15,5,N);N的具体意义是什么,输不输入N有什么不一样。
发布网友
发布时间:2022-05-22 20:13
我来回答
共1个回答
热心网友
时间:2023-10-08 18:06
在使用strel的时候:
SE = strel('ball',15,5,N);
N如果没有定义,默认等于8。
也就是说,如果没有输N,和你输了N=8是一样的。
对于strel的具体使用,可以参考matlab的官方帮助文档:
http://cn.mathworks.com/help/images/ref/strel.html?searchHighlight=strel
其中,关于语法:
SE = strel('ball', R, H, N)
解释如下:
SE = strel('ball', R, H, N) creates
a nonflat, ball-shaped structuring element (actually an ellipsoid)
whose radius in the X-Y plane is R and
whose height is H. Note that R must
be a nonnegative integer, H must be a real scalar,
and N must be an even nonnegative integer. When N is
greater than 0, the ball-shaped structuring element
is approximated by a sequence of N nonflat, line-shaped
structuring elements. When N equals 0,
no approximation is used, and the structuring element members consist
of all pixels whose centers are no greater than R away
from the origin. The corresponding height values are determined from
the formula of the ellipsoid specified by R and H.
If N is not specified, the default value is 8.
抱歉对于你们专业的问题,我理解不够深入,不敢妄自翻译。只好原文复制过来,还请费心一阅了。
若有疑问,可以追问。
互相讨论,互相学习。