matlab函数bwlabel与bwlabeln的区别

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/30 02:12:14

matlab函数bwlabel与bwlabeln的区别
matlab函数bwlabel与bwlabeln的区别

matlab函数bwlabel与bwlabeln的区别
Note: Comparing BWLABEL and BWLABELN
------------------------------------
BWLABEL supports 2-D inputs only, whereas BWLABELN support any
input dimension. In some cases you might prefer to use BWLABELN even
for 2-D problems because it can be faster. If you have a 2-D input
whose objects are relatively "thick" in the vertical direction,
BWLABEL will probably be faster; otherwise BWLABELN will probably be
faster.
两者区别不大.
bwlabel在二值图中目标区块垂直方向比较长的时候比较快,其他情况下,都是bwlabeln更快.
重要的一点是bwlabeln可以处理多维数组,而bwlabel只能接受二维的输入.