A general approach to connected-component labeling for arbitrary image representations
- 1 April 1992
- journal article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 39 (2) , 253-280
- https://doi.org/10.1145/128749.128750
Abstract
An improved and general approach to connected-component labeling of images is presented. The algorithm presented in this paper processes images in predetermined order , which means that the processing order depends only on the image representation scheme and not on specific properties of the image. The algorithm handles a wide variety of image representation schemes (rasters, run lengths, quadrees, bintrees, etc.). How to adapt the standard UNION-FIND algorithm to permit reuse of temporary labels is shown. This is done using a technique called age balancing , in which, when two labels are merged, the older label becomes the father of the younger label. This technique can be made to coexist with the more conventional rule of weight balancing , in which the label with more descendants becomes the father of the label with fewer descendants. Various image scanning orders are examined and classified. It is also shown that when the algorithm is specialized to a pixel array scanned in raster order, the total processing time is linear in the number of pixels. The linear-time processing time follows from a special property of the UNION-FIND algorithm, which may be of independent interest. This property states that under certain restrictions on the input, UNION-FIND runs in time linear in the number of FIND and UNION operations. Under these restrictions, linear-time performance can be achieved without resorting to the more complicated Gabow-Tarjan algorithm for disjoint set union.Keywords
This publication has 8 references indexed in Scilit:
- Efficient component labeling of images of arbitrary dimension represented by linear bintreesPublished by Institute of Electrical and Electronics Engineers (IEEE) ,1988
- The Quadtree and Related Hierarchical Data StructuresACM Computing Surveys, 1984
- Worst-case Analysis of Set Union AlgorithmsJournal of the ACM, 1984
- A new connected components algorithm for virtual memory computersComputer Vision, Graphics, and Image Processing, 1983
- Connected Component Labeling Using QuadtreesJournal of the ACM, 1981
- Efficiency of a Good But Not Linear Set Union AlgorithmJournal of the ACM, 1975
- Algorithm 447: efficient algorithms for graph manipulationCommunications of the ACM, 1973
- Sequential Operations in Digital Picture ProcessingJournal of the ACM, 1966