Abstract
Image segmentation remains a cornerstone of computer vision, yet many existing techniques are hampered by the need for a fixed number of clusters or high computational costs. This paper introduces an iterative framework that alternates between Maximum A Posteriori (MAP) and Maximum Likelihood (ML) estimations. By incorporating a connectivity-based relabeling step, the algorithm dynamically determines the optimal number of regions while maintaining spatial consistency through Markov Random Fields (MRFs).
Introduction
The task of partitioning an image into meaningful segments is often plagued by three main issues: the requirement to specify the number of regions ($k$) beforehand, approximation errors in spectral methods that lead to poor edge alignment, and the prohibitive computational time of generative models like MCMC. This research proposes a solution that is both efficient and adaptive, allowing the number of segments to evolve based on image content rather than user-defined parameters.
Methodology
The proposed system represents each pixel using a 4D feature vector consisting of $L^*a^*b^*$ color components and a texture contrast component. The optimization follows an iterative three-step cycle:
- MAP Estimation (Labeling): Pixels are assigned labels based on current region features. This is modeled as an MRF and solved using efficient graph-cut algorithms to ensure spatial smoothness and data fidelity.
- Relabeling: This critical step performs a connectivity check. If non-adjacent areas share a label, they are split into unique clusters, allowing the number of regions to grow or shrink as needed during the process.
- ML Estimation (Feature Refinement): Region features are updated by calculating the mean color and texture of all pixels within the newly defined labels.
Experimental Results
The algorithm was evaluated on natural image datasets and specific object extraction tasks involving animals like horses and zebras. Unlike methods like Normalized Cuts, which often produce blocky partitions, this approach demonstrates superior adherence to real object boundaries.
The framework also proved robust to occlusion. In animal extraction experiments, the model successfully isolated subjects even when partially hidden by environmental features like tall grass. Convergence is typically achieved within a few iterations (e.g., 4 iterations), demonstrating high efficiency compared to traditional generative models.
Conclusion
The iterative MAP-ML framework provides a robust, automated approach to image segmentation. While highly effective for homogeneous regions, future work is needed to handle complex objects composed of multiple distinct parts (e.g., a person in multi-colored clothing) by incorporating broader image context and more complex feature models.
Summary updated