Multilevel thresholding for image segmentation through a fast statistical recursive algorithm

Siddharth Arora, Jayadev Acharya, Amit Verma, Prasanta K. Panigrahi

TL;DR

This paper introduces a novel, fast recursive algorithm for multilevel image segmentation that leverages image mean and variance. By adaptively refining sub-ranges of pixel intensities, the method achieves efficient segmentation with a non-uniform granularity, focusing detail around the image mean, which aligns well with human visual perception.

What Problem Does This Paper Address?

Image segmentation, the process of partitioning an image into meaningful regions, is a fundamental task in image processing. Thresholding is a popular technique due to its efficiency in reducing storage and processing requirements. While bi-level thresholding (segmenting into two regions) is straightforward, many real-world applications require multilevel thresholding to capture finer details and complex structures. The challenge lies in automatically determining the optimal number of thresholds and efficiently segmenting the image without losing crucial information, especially in areas with subtle intensity variations. Existing multilevel thresholding methods can be computationally expensive or struggle with determining the appropriate number of segments.

Methods

The proposed algorithm employs a recursive approach to multilevel thresholding. It starts by considering the entire range of pixel intensities (0-255). In each recursive step, it calculates the mean ($\mu$) and standard deviation ($\sigma$) of the pixels within the current intensity range. Two thresholds, $T_1 = \mu - \kappa\sigma$ and $T_2 = \mu + \kappa\sigma$, are determined, where $\kappa$ is a control parameter. Pixels in the extreme sub-ranges ([a, $T_1$] and [$T_2$, b]) are then assigned a representative value (e.g., their weighted mean), effectively coarse-graining these regions. The algorithm then recursively applies itself to the new, refined sub-ranges ([ $T_1$+1, $\mu$] and [$\mu$+1, $T_2$-1]), focusing on finer segmentation around the mean. This process continues until no significant improvement in image quality (measured by PSNR) is observed, providing a natural criterion for determining the optimal number of thresholds. The non-uniform granularity, with coarser segmentation at the extremes and finer segmentation near the mean, is a key feature.

Datasets

The paper evaluates the algorithm on several standard test images commonly used in image processing literature, including:

  • Lena
  • Baboon
  • Peppers
  • Jet
  • Ariel
  • House
  • Moon

These images are chosen to represent a variety of histogram patterns and textures, allowing for a rigorous test of the algorithm's performance.

Key Insights and Ideas

  • Human Perception Alignment: The algorithm's non-uniform segmentation, with finer detail around the mean and coarser segmentation at the extremes, is inspired by human visual perception, which is more sensitive to mid-range intensity variations.
  • Adaptive Granularity: The recursive refinement of sub-ranges, driven by mean and standard deviation, allows the algorithm to adapt its segmentation granularity to the local image content, leading to more effective feature extraction.
  • PSNR Saturation as a Stopping Criterion: The observation that the PSNR of the thresholded image saturates after a few iterations provides a robust and automatic method for determining the optimal number of thresholds, addressing a common challenge in multilevel thresholding.
  • Computational Efficiency: The recursive approach, combined with the use of simple statistical measures, results in a computationally fast algorithm compared to some existing multilevel thresholding methods.

Key Results

The proposed algorithm demonstrates effective image segmentation across various test images.

  • Speed: The method is computationally very fast, with computational times significantly lower than some comparable recursive methods (e.g., Otsu's recursive method). For instance, achieving 9 levels of thresholding for the "Lena" image takes 437 milliseconds.
  • Quality: The segmentation quality, as measured by PSNR, rapidly approaches saturation with an increasing number of thresholds, indicating efficient convergence. For example, the PSNR for "Lena" reaches 29.51 dB with 9 levels.
  • Visual Results: The thresholded images show clear segmentation into distinct regions, with enhanced contrast and sharp boundaries, particularly around the mean intensity values. The blocking effect is non-uniform, with smaller blocks near the mean, contributing to better visualization.

Limitations and Future Work

  • Parameter $\kappa$: While the paper mentions $\kappa$ as a free parameter and uses $\kappa=1$ for simplicity, the optimal choice of $\kappa$ for different image types or specific segmentation goals is not extensively explored. The paper notes that using different values for $T_1$ and $T_2$ (e.g., $\kappa_1$ and $\kappa_2$) can help handle asymmetric distributions.
  • Weighted Mean vs. Mid-range Value: The authors note that for some images, using the mid-range value of a sub-range instead of the weighted mean can improve feature extraction, although it may reduce PSNR. Further investigation into this trade-off could be beneficial.
  • Automatic $\kappa$ Selection: Future work could focus on developing an automatic method for selecting the optimal $\kappa$ value or exploring adaptive $\kappa$ values within the recursive process.
  • Extension to Color Images: The current algorithm is designed for grayscale images. Extending it to color images would be a natural next step.

Summary updated

BibTeX
@article{arora2008multilevel,
  author = {Siddharth Arora and Jayadev Acharya and Amit Verma and Prasanta K. Panigrahi},
  title = {{Multilevel thresholding for image segmentation through a fast statistical recursive algorithm}},
  journal = {Pattern Recognition Letters},
  year = {2008},
  doi = {10.1016/j.patrec.2007.09.005},
}
Figure