In-Place Algorithm for Connected Components Labeling
Tetsuo Asano, Hiroshi Tanaka
Abstract
Connected components labeling of a binary image is one of the most fundamental operations in image processing. This paper presents two linear-time algorithms on this topics, one for just reporting the number of connected components and the other for labeling every element of value 1 (or white pixel) by its component index. An important feature here is that they can be implemented without using any extra array other than the one for an input image and they are suitable for embedded software.