Algorithms for connected component labeling based on quadtrees

An algorithm of linear time complexity is presented to label connected components of a binary image by a quadtree. For a given node, the search for all adjacent nodes is carried out in O(1) (i.e., constant time complexity for the worst case) using our formerly presented algorithm in (Aizawa et al., 3rd International Symposium on Communications, Control, and Signal Processing, [2008], 505–510), whereas it explores all possible adjacencies for each node in a usual way. Then during the process of tree formulation in the search, all equivalent relations of labels are stored as lists. Time complexity of the algorithm is O(B+W) for the worst case and its auxiliary space is no more than O(B), where B and W correspond to the number of leaf nodes in a quadtree representing black and white quadrants, respectively. Empirical tests of the algorithm are employed in comparison with another linear time connected component labeling algorithm based on top-down quadtree traversal algorithm (Samet, IEEE Trans Pattern Anal Mach Intell PAMI-7 (1985), 94–98), as well as traditional row-by-row scanning algorithm using linear time Union-Find (Fiorio and Gustedt, Theor Comput Sci 154 (1996), 165–181). Our algorithm has shown the best performance in large images. © 2009 Wiley Periodicals, Inc. Int J Imaging Syst Technol, 19, 158–166, 2009.

[1]  Hanan Samet,et al.  A Top-Down Quadtree Traversal Algorithm , 1985, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[2]  Azriel Rosenfeld,et al.  Connectivity in Digital Pictures , 1970, JACM.

[3]  Irene Gargantini,et al.  Linear quadtrees: A blocking technique for contour filling , 1984, Pattern Recognit..

[4]  Robert E. Tarjan,et al.  Efficiency of a Good But Not Linear Set Union Algorithm , 1972, JACM.

[5]  Arie Shoshani,et al.  Optimizing connected component labeling algorithms , 2005, SPIE Medical Imaging.

[6]  Terence R. Smith,et al.  Boundary matching algorithm for connected component labelling using linear quadtrees , 1988, Image Vis. Comput..

[7]  N. Otsu A threshold selection method from gray level histograms , 1979 .

[8]  Y. V. Venkatesh,et al.  Connected Component Labelling Using Quadtrees - A Bottom-up Approach , 1987, Comput. J..

[9]  Christophe Fiorio,et al.  Two Linear Time Union-Find Strategies for Image Processing , 1996, Theor. Comput. Sci..

[10]  Kenji Suzuki,et al.  Linear-time connected-component labeling based on sequential local operations , 2003, Comput. Vis. Image Underst..

[11]  Hanan Samet,et al.  A general approach to connected-component labeling for arbitrary image representations , 1992, JACM.

[12]  Jon Louis Bentley,et al.  Quad trees a data structure for retrieval on composite keys , 1974, Acta Informatica.

[13]  K. Aizawa,et al.  Constant time neighbor finding in quadtrees: An experimental result , 2008, 2008 3rd International Symposium on Communications, Control and Signal Processing.

[14]  Kunio Aizawa,et al.  A Constant-Time Algorithm for Finding Neighbors in Quadtrees , 2009, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[15]  Günther F. Schrack,et al.  Finding neighbors of equal size in linear quadtrees and octrees in constant time , 1991, CVGIP Image Underst..

[16]  Irene Gargantini,et al.  An effective way to represent quadtrees , 1982, CACM.

[17]  Hanan Samet,et al.  Connected Component Labeling Using Quadtrees , 1981, JACM.