A Fast Hierarchical Multilevel Image Segmentation Method using Unbiased Estimators

Sreechakra Goparaju, Jayadev Acharya, Ajoy K. Ray, Jaideva C. GoswamiarXiv 2007

Abstract

This paper introduces a fast, hierarchical multilevel thresholding algorithm for image segmentation. By optimizing the ratio of unbiased variance estimators through a recursive formula, the method reduces computational complexity from exponential $O(G^n)$ to $O(G^2)$. Experimental results on various object-oriented and standard test images demonstrate that the proposed approach achieves higher accuracy and efficiency compared to traditional methods like Otsu’s, while also serving as an effective tool for lossy image compression.

Introduction

Image thresholding is a fundamental process in computer vision used to partition an image into distinct regions based on pixel intensity. While bilevel thresholding is computationally efficient, multilevel thresholding—essential for complex scenes—suffers from the "curse of dimensionality." The industry-standard Otsu’s method, which maximizes between-class variance via exhaustive search, has a complexity of $O(G^n)$ for $n$ thresholds and $G$ gray levels. This exponential growth makes it impractical for real-time applications or high-resolution compression.

This research addresses this bottleneck by proposing an agglomerative hierarchical clustering approach that utilizes recursive variance estimation to achieve high-quality segmentation in $O(G^2)$ time, regardless of the number of thresholds.

Methodology

The proposed algorithm departs from global exhaustive searches in favor of a localized, iterative merging process:

  1. Initialization: Each of the 256 gray levels in a standard 8-bit image begins as an individual class.
  2. Criterion Function: The algorithm seeks to minimize a criterion function $q(i)$, defined as the ratio of the unbiased estimator of within-class variance to the unbiased estimator of between-class variance. The use of unbiased estimators provides a more robust statistical foundation, particularly for classes with small pixel populations.
  3. Recursive Updates: The core innovation lies in the derivation of recursive formulas that allow the new variances of merged adjacent classes to be calculated in constant time $O(1)$.
  4. Agglomerative Iteration: At each step, the pair of adjacent classes whose merger results in the minimal increase in the criterion function is combined. This continues until the target number of classes ($M$) is reached.

Experimental Evaluation

The researchers evaluated the algorithm using a diverse set of benchmarks, including object-oriented images and standard test images like Lena and Peppers.

Figure 3: Overview of the object-oriented test images used for evaluation, including (a) Bacteria, (b) Coins, (c) Fish, (d) Things, and (e) Rice.

Quantitative performance was measured using Misclassification Error (ME) and Relative Foreground Area Error (RAE) against manually generated ground truth images. For compression tasks, Peak Signal-to-Noise Ratio (PSNR) was used to assess visual fidelity.

Results and Discussion

The proposed method demonstrated significant improvements in both efficiency and accuracy. By reducing complexity to $O(G^2)$, the algorithm enables real-time multilevel segmentation that was previously computationally prohibitive.

In comparative tests, the method consistently outperformed Otsu, Kwon, and Kittler-Illingworth (KI). For instance, on the "Fish" image, the proposed method achieved an ME of 0.0263, compared to 0.0673 for Otsu’s method. Visual results on the "Coins" dataset highlight the algorithm's ability to produce cleaner segmentations with fewer artifacts.

Figure 6: Example of a clean binary segmentation result achieved using the proposed hierarchical method.

Beyond simple segmentation, the method proved effective for lossy compression. Representing the "Lena" image with only 25 levels yielded a PSNR of 41.1 dB, indicating excellent visual quality with a significantly reduced data footprint.

Conclusion

By combining hierarchical clustering with recursive unbiased variance estimation, the authors have provided a mathematically elegant and computationally efficient solution to multilevel thresholding. While the method is currently "spatially blind"—treating pixels based solely on intensity regardless of location—it sets a new benchmark for speed and accuracy in histogram-based segmentation. Future work may explore automatic class selection and adaptations for non-uniform lighting conditions.

Summary updated

BibTeX
@misc{goparaju2007fast,
  author = {Sreechakra Goparaju and Jayadev Acharya and Ajoy K. Ray and Jaideva C. Goswami},
  title = {{A Fast Hierarchical Multilevel Image Segmentation Method using Unbiased Estimators}},
  year = {2007},
  eprint = {0712.4015},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0712.4015},
}
Figure