Connected component labeling
来源:互联网 发布:java interface 属性 编辑:程序博客网 时间:2024/06/08 14:17
以 black-white and 8-connectivity 为例,0代表背景,1代表前景物体。该算法包括 two scans, from left to right and from top to down.
The first scan: examine the four neighbors(斜左上角,正上方,斜右上角和左方)
i. If none of the pixel value is 1, then assign this pixel a new label;
ii. If only one of this four pixels is 1, then assign its label to the current pixel;
iii. Then if more than 1 pixels are 1, then assign the minimal label to the current pixel, and make a note of equivalences for these pixels.
The second scan: merge the labels with the equivalent notes.
示例:
1. 源数据:
2. First scan之后
Equivalence table:
- Connected component labeling
- 20070306-Connected component labeling – Part 1
- 20070313-Connected component labeling – Part 2
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析与标记(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析与标记(Connected Component Analysis-Labeling
- OpenCV_连通区域分析与标记(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- OpenCV_连通区域分析(Connected Component Analysis-Labeling)
- OpenCV_连通区域分析(Connected Component Analysis/Labeling)
- log4j配置详解
- Android应用开发之(WebView中loadData与loadDataWithBaseURL的使用上的区别)
- redis BGREWRITEAOF 重写总结
- 更改pdf阅读器文档底色方法
- OpenRisc-7-基于or1200最小sopc系统搭建(一)--搭建及仿真(DE2,DE2-70)
- Connected component labeling
- OpenRisc-8-基于or1200最小sopc系统搭建(二)--QuartuII工程及DE2平台下载
- 常用开发工具
- hadoop maven complie
- 专业程序员必知必会的技巧:驯服复杂代码
- What is a Cardinal Spline?
- OpenRisc-9-基于or1200最小sopc系统搭建(三)--串口
- Java 遍历文件夹下的所有文件和文件夹
- Arcgis pagelayout 实现添加图名,比例尺,指北针