Block-Based Connected-Component Labeling Algorithm Using Binary Decision Trees

Wan-Yu Chang, Chung-Cheng Chiu, Jia-Horng Yang2015

TL;DR

This paper introduces a novel, efficient block-based connected-component labeling (CCL) algorithm that significantly speeds up image processing by minimizing memory accesses. By employing a simplified scan mask and a two-procedure decision tree strategy, the algorithm achieves substantial performance gains over existing methods, making it ideal for real-time applications.

What Problem Does This Paper Address?

Connected-component labeling (CCL) is a fundamental image processing technique used to identify and label distinct objects in an image. In real-time applications, especially those involving high-resolution images and background subtraction, the efficiency of CCL algorithms is paramount. Traditional methods often suffer from excessive memory access, which directly impacts processing speed. This paper addresses the challenge of reducing these memory accesses to create a faster and more efficient CCL algorithm without sacrificing accuracy.

Methods

The proposed algorithm builds upon block-based CCL concepts, aiming to minimize neighborhood operations. Key innovations include:

  • Simplified Block-Based Scan Mask: Instead of using all 20 pixels from a standard block-based scan mask, the proposed algorithm selects a more efficient subset of 8 pixels. This simplification reduces redundant memory accesses.
  • Two-Procedure Strategy: The algorithm employs two distinct procedures, "procedure 1" and "procedure 2," which are dynamically selected based on the state of specific pixels. This allows for tailored decision-making and further optimization.
  • Binary Decision Trees: Two binary decision trees are designed to guide the labeling process within each procedure. These trees efficiently determine neighbor operations, eliminating unnecessary computations.
  • First-Scan and Second-Scan Methods: The algorithm utilizes a two-pass approach. The first scan assigns provisional labels using the block-based scan mask and decision trees. The second scan then updates these provisional labels to representative labels, ensuring consistency.

Datasets

The paper evaluates the proposed algorithm using:

  • Synthetic Datasets: Random noise images were generated at various resolutions and densities to test the algorithm's performance and linearity with image size and noise levels.
  • Real Image Datasets:
    • "GdeFon" (GF) Datasets: Sixty images from diverse categories were selected and resized to various large dimensions (6000x6000 to 12000x12000 pixels) to test performance on large-scale images.
  • "Formosa Highway" (FH) Dataset: 382 sequential images of real driving scenarios (320x240 pixels) were used, pre-processed with background subtraction to generate foreground images.

Key Insights and Ideas

  • Strategic Pixel Selection is Key: Reducing the number of pixels considered in the scan mask (from 20 to 8) significantly impacts performance by cutting down on memory operations.
  • Adaptive Procedures Enhance Efficiency: The dynamic switching between two procedures based on pixel states allows the algorithm to adapt to different local image characteristics, leading to more efficient processing.
  • Binary Decision Trees as Efficient Logic Gates: The carefully designed binary decision trees act as highly optimized logic units, quickly guiding the algorithm to the correct labeling action and avoiding exhaustive checks.
  • Block-Based Approach for Memory Efficiency: By processing pixels in blocks rather than individually, the algorithm inherently reduces the overhead associated with memory access and management.

Key Results

The proposed algorithm demonstrated superior performance compared to existing methods, particularly the BBDT and FCC algorithms:

  • Speed Improvement:
    • On noisy datasets, the proposed algorithm was 12.01% faster than BBDT and 42.82% faster than BBDT-CV for densities of 0.4-0.6.
  • On the GF dataset (large images), it was 18.33% faster than BBDT and 29.57% faster than FCC.
  • For the first-scan method on GF dataset, it was 31.41% faster than BBDT and 60.36% faster than FCC.
  • On the FH dataset (320x240 resolution), it was 17.35% faster than BBDT and 23.84% faster than FCC.
  • For the first-scan method on FH dataset, it was 17.57% faster than BBDT and 34.55% faster than FCC.
  • Reduced Memory Usage: The proposed algorithm generated 43.02% fewer leaf nodes and 41.67% fewer depth levels in its decision trees compared to a previous optimized approach, and significantly fewer than the BBDT algorithm.

Limitations and Future Work

  • Limitations: The paper does not explicitly discuss limitations in terms of specific image types or scenarios where the algorithm might not perform optimally. The performance gains are primarily demonstrated on specific datasets and resolutions.
  • Future Work: The authors suggest that the proposed algorithm is efficient and can be further optimized. While not explicitly detailed, the focus on block-based processing and decision trees suggests potential for parallelization and hardware acceleration. The paper implies that further research could explore more advanced scan mask designs or adaptive strategies.

Summary updated

BibTeX
@misc{chang2015block,
  author = {Wan-Yu Chang and Chung-Cheng Chiu and Jia-Horng Yang},
  title = {{Block-Based Connected-Component Labeling Algorithm Using Binary Decision Trees}},
  year = {2015},
  doi = {10.3390/s150923763},
}
Figure