Abstract
Active contour models based on local region fitting energy are powerful for segmenting images with intensity inhomogeneity. However, their non-convex nature makes them highly sensitive to initial contour placement, often leading to failure if the curve is not initialized near the target boundary. This paper introduces a simple "swap" trick using min and max functions to synchronize the evolution direction across the contour. This modification ensures robust segmentation regardless of initialization, with negligible computational overhead.
Introduction
In image processing, active contours (or "snakes") are essential tools for object segmentation. Models like Region-based Scalable Fitting (RSF) are particularly effective in handling intensity inhomogeneity, where lighting varies across an object. Despite their strengths, these models frequently get trapped in local minima. When a contour is poorly initialized, different segments may evolve in conflicting directions—some moving inward while others move outward. This "repulsion" effect prevents the curve from capturing the complete object boundary.
Methodology: The "Swap" Trick
The proposed solution is a universal modification applicable to various local fitting-based models (e.g., RSF, LIF, LGDF). Standard models calculate two local fitting values, $f_1$ and $f_2$, representing average intensities inside and outside the contour. The authors observed that failures often occur when the relative order of $f_1$ and $f_2$ flips locally.
To enforce consistent evolution, the original values are replaced with:
- $f_1^* = \min(f_1, f_2)$
- $f_2^* = \max(f_1, f_2)$
By ensuring $f_2^*$ is always greater than $f_1^*$ (or vice versa), the entire curve is mathematically coerced to move in a single direction relative to the boundary. This allows disparate curve segments to merge seamlessly into the correct shape.
Experimental Results
The method was validated using synthetic images with heavy gradients, real-world medical scans, and the McGill BrainWeb database.
Key Findings
- Robustness: While original models failed on 80% of varied initializations, the improved versions succeeded in 100% of cases.
- Accuracy: In brain MRI segmentation, the Dice Similarity Coefficient remained high (~0.96) even with poor initialization, whereas the original model's performance dropped significantly (~0.48).
- Efficiency: The computational cost is virtually identical to the original models, with differences in processing time typically under 0.01 seconds.
Discussion and Conclusion
The primary insight is that synchronization of evolution direction is more critical for robustness than complex energy formulations. This "min/max" approach allows for smaller scale parameters ($\sigma$), maintaining high precision without sacrificing stability.
While the method requires the user to know if the target object is generally brighter or darker than the background to choose the appropriate min/max order, it provides a significant leap in automation. Future work will explore extending this logic to 3D volumetric data, where manual initialization is particularly challenging.
Summary updated