New Algorithm for Binary Connected-Component Labeling Based on Run-Length Encoding and Union-Find Sets

被引:5
作者
王洪涛 [1 ]
罗长洲 [2 ]
王渝 [1 ]
郭贺 [2 ]
赵述芳 [1 ]
机构
[1] School of Automation,Beijing Institute of Technology
[2] Beijing Institute of Control and Electronic Technology
关键词
binary images; connected-component labeling; run-length encoding; union-find sets;
D O I
10.15918/j.jbit1004-0579.2010.01.016
中图分类号
TP391.41 [];
学科分类号
080203 ;
摘要
Based on detailed analysis of advantages and disadvantages of the existing connected-component labeling (CCL) algorithm,a new algorithm for binary connected components labeling based on run-length encoding (RLE) and union-find sets has been put forward.The new algorithm uses RLE as the basic processing unit,converts the label merging of connected RLE into sets grouping in accordance with equivalence relation,and uses the union-find sets which is the realization method of sets grouping to solve the label merging of connected RLE.And the label merging procedure has been optimized:the union operation has been modified by adding the "weighted rule" to avoid getting a degenerated-tree,and the "path compression" has been adopted when implementing the find operation,then the time complexity of label merging is O(nα(n)).The experiments show that the new algorithm can label the connected components of any shapes very quickly and exactly,save more memory,and facilitate the subsequent image analysis.
引用
收藏
页码:71 / 75
页数:5
相关论文
共 7 条