Abstract
Image segmentation is a critical task in computer vision and medical imaging. However, intensity inhomogeneity—the variation of image intensity—often poses significant challenges. We propose an efficient two-stage variational method for segmenting images with such lighting artifacts. Inspired by Retinex theory and two-stage segmentation, our method first decouples the image into reflection and illumination components by solving a convex energy minimization model using either total variation or tight-frame regularization. In the second stage, the original image is segmented by thresholding the reflection part, while the inhomogeneous intensity is estimated via the smoothly varying illumination part. Using a primal-dual algorithm, we ensure guaranteed convergence. Numerical experiments demonstrate that our method is robust and efficient for both natural and medical imaging.
Introduction
A fundamental assumption in many classic segmentation algorithms, such as the Chan-Vese model, is that the objects of interest possess roughly constant intensities. In practice, this assumption is frequently violated due to shadows in natural scenes or the "bias field" in MRI scans. This intensity inhomogeneity creates spurious gradients that can mislead algorithms into detecting non-existent edges or failing to identify actual objects. This paper addresses these challenges by "cleaning" images of lighting artifacts before performing segmentation.
Methodology
Our approach utilizes a two-stage framework designed to handle uneven lighting through convex optimization.
Stage 1: Decoupling via Retinex Theory
Following Retinex theory, we model an observed image $S$ as the product of illumination ($L$) and reflection ($R$): $S = L \cdot R$. By transforming this into the log-domain ($s = l + r$), the problem becomes additive. We then solve a convex energy minimization model to estimate the reflection component.
To preserve sharp edges while removing noise, we employ two types of regularization:
- Total Variation (TV): Efficient for smoothing while maintaining boundaries.
- Tight Frame: A wavelet-like regularization that captures finer geometric details and is superior for preserving weak features.
We solve this model using the Chambolle-Pock primal-dual algorithm, which provides a known convergence rate and stability, unlike previous inexact methods.
Stage 2: Thresholding
Once the reflection image is obtained, the background lighting is effectively "flattened." Segmentation is then achieved by applying simple thresholds to the reflection values. This decoupling allows users to experiment with different threshold levels or segment counts instantly without re-running the optimization.
Experimental Results
We evaluated the framework on diverse datasets, including the Berkeley Segmentation Dataset (BSDS), BrainWeb MRI simulations, and real-world biological images.
Qualitative Performance
In challenging cases like a fish in murky water, standard methods often fail due to the water's lighting gradient. Our method successfully extracts the reflection component, making the object of interest "pop" against a uniform background.
Robustness and Precision
- Medical Imaging: On MRI data with 20% simulated non-uniformity, the model accurately separated white matter and gray matter.
- Feature Preservation: In the "Camel" experiment from BSDS, Tight Frame regularization preserved delicate features like the tail, which were smoothed away by standard TV models.
- Noise Handling: The method remained robust in cell-tracking experiments, ignoring high noise levels that typically produce false positives.
Conclusion
By combining the physical intuition of Retinex theory with the mathematical rigor of convex optimization, we provide a robust solution for image segmentation under intensity inhomogeneity. While the current second stage often requires manual thresholding, future work will focus on integrating automatic clustering algorithms like K-means or DBSCAN to fully automate the pipeline. Additionally, further optimization of the tight-frame minimization solver could enhance computational speed for real-time applications.
Summary updated