Optimizing two-pass connected-component labeling algorithms

被引:244
作者
Wu, Kesheng [1 ]
Otoo, Ekow [1 ]
Suzuki, Kenji [2 ]
机构
[1] Univ Calif Berkeley, Lawrence Berkeley Natl Lab, Berkeley, CA 94720 USA
[2] Univ Chicago, Dept Radiol, Chicago, IL 60637 USA
关键词
Connected-component labeling; Optimization; Union-find algorithm; Decision tree; Equivalence relation; DISJOINT SET UNION; IMAGE SEGMENTATION; RECOGNITION; OPERATIONS;
D O I
10.1007/s10044-008-0109-y
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
We present two optimization strategies to improve connected-component labeling algorithms. Taking together, they form an efficient two-pass labeling algorithm that is fast and theoretically optimal. The first optimization strategy reduces the number of neighboring pixels accessed through the use of a decision tree, and the second one streamlines the union-find algorithms used to track equivalent labels. We show that the first strategy reduces the average number of neighbors accessed by a factor of about 2. We prove our streamlined union-find algorithms have the same theoretical optimality as the more sophisticated ones in literature. This result generalizes an earlier one on using union-find in labeling algorithms by Fiorio and Gustedt (Theor Comput Sci 154(2):165-181, 1996). In tests, the new union-find algorithms improve a labeling algorithm by a factor of 4 or more. Through analyses and experiments, we demonstrate that our new two-pass labeling algorithm scales linearly with the number of pixels in the image, which is optimal in computational complexity theory. Furthermore, the new labeling algorithm outperforms the published labeling algorithms irrespective of test platforms. In comparing with the fastest known labeling algorithm for two-dimensional (2D) binary images called contour tracing algorithm, our new labeling algorithm is up to ten times faster than the contour tracing program distributed by the original authors.
引用
收藏
页码:117 / 135
页数:19
相关论文
共 47 条
[1]  
AGARWAL PK, 2006, SCG 06, P167
[2]  
Aho A. V., 1983, DATA STRUCTURES ALGO
[3]  
Aho A. V., 1974, The design and analysis of computer algorithms
[4]   PARALLEL ARCHITECTURES AND ALGORITHMS FOR IMAGE COMPONENT LABELING [J].
ALNUWEIRI, HM ;
PRASANNA, VK .
IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 1992, 14 (10) :1014-1034
[5]  
Alstrup S., 1999, Proceedings of the Thirty-First Annual ACM Symposium on Theory of Computing, P499, DOI 10.1145/301250.301383
[6]   A document skew detection method using the Hough Transform [J].
Amin, A ;
Fischer, S .
PATTERN ANALYSIS AND APPLICATIONS, 2000, 3 (03) :243-253
[7]  
[Anonymous], 2006, Digital Image Processing
[8]  
Ballard DH, 1982, Computer vision
[9]  
Bollobas B., 1985, STOC, P224
[10]   A linear-time component-labeling algorithm using contour tracing technique [J].
Chang, F ;
Chen, CJ ;
Lu, CJ .
COMPUTER VISION AND IMAGE UNDERSTANDING, 2004, 93 (02) :206-220