鹰击长空,拼搏吧!!! 态度决定成败!分享 http://blog.sciencenet.cn/u/eaglezxw 邹兴文,工学硕士,甘肃漳县人,计算机视觉入门者,算法工程师

博文

bwlabel对图像进行标注

已有 3417 次阅读 2010-2-4 16:44 |个人分类:开发经验|系统分类:科研笔记|关键词:学者| 图像, bwlabel, 标注

bwlabel函数可以用于对二值图像进行标注,是个很有用的函数,真希望VC也有这些函数。 Label connected components in a binary image SyntaxL = bwlabel(BW,n) [L,num] = bwlabel(BW,n) DescriptionL = bwlabel(BW,n) returns a matrix L, of the same size as BW, containing labels for the connected objects in BW. n can have a value of either 4 or 8, where 4 specifies 4-connected objects and 8 specifies 8-connected objects; if the argument is omitted, it defaults to 8. The elements of L are integer values greater than or equal to 0. The pixels labeled 0 are the background. The pixels labeled 1 make up one object, the pixels labeled 2 make up a second object, and so on. [L,num] = bwlabel(BW,n) returns in num the number of connected objects found in BW.

https://m.sciencenet.cn/blog-379528-292658.html

上一篇:沙尔克04宣布签约蒿俊闵,也算是给中国足球的一点安慰
下一篇:2010年43所新增、筹建及更名高校名单

0

发表评论 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-14 03:27

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部