Introduction
Image segmentation is a fundamental task in computer vision, often requiring regularization to ensure that resulting shapes are smooth and physically plausible. Traditionally, this has been achieved through length-based regularization, such as the perimeter penalty used in GrabCut. However, these methods suffer from two significant drawbacks: a "shrinking bias" that tends to minimize object size excessively, and a high sensitivity to parameter weighting.
In "Convexity Shape Prior for Segmentation" (ECCV 2014), the authors propose a high-order convexity prior that addresses these limitations. By penalizing non-convex configurations rather than boundary length, the method provides a scale-invariant regularizer that is robust to noise and virtually parameter-free once a sufficient threshold is met.
Methodology: The 1-0-1 Penalty
The core of the proposed approach is a discrete energy minimization framework that enforces global convexity. The authors define convexity by examining triplets of pixels $(p, q, r)$ located on any straight line, where $q$ lies between $p$ and $r$.
A shape is deemed non-convex if it exhibits a "1-0-1" pattern—where $p$ and $r$ are labeled as foreground (1) but the intermediate pixel $q$ is labeled as background (0). By assigning a high penalty ($\omega$) to such configurations, the algorithm encourages the formation of convex regions.
Optimization and Efficiency
Optimizing this "triple-clique" energy is challenging because it is non-submodular. To solve this, the authors utilize an iterative trust-region framework. In each iteration, a linear approximation of the energy is solved within a constrained "trust region" around the current solution.
To handle the computational complexity of evaluating billions of pixel triplets, the authors introduced a Dynamic Programming (DP) speedup. By using running sums along discrete lines, the total convexity energy and its linear approximation can be evaluated in linear time $O(mN)$, where $N$ is the number of pixels and $m$ is the number of orientations. This allows the algorithm to process standard-sized images in just a few seconds.
Key Insights
- Global vs. Local: Unlike curvature, which is a local property, convexity is a global geometric attribute. This method successfully bridges the gap between local pixel labels and global shape properties.
- Scale Invariance: The prior is independent of the object's size. A small convex circle and a large one are penalized equally (zero penalty), avoiding the shrinking bias inherent in length-based methods.
- Parameter Robustness: Once the penalty weight $\omega$ is high enough to enforce the convexity constraint, further increases do not alter the segmentation result. This makes the method significantly easier to deploy than perimeter-based alternatives.
- Corner Preservation: Length regularization tends to round off sharp corners to minimize perimeter. In contrast, the convexity prior allows for sharp geometric features (like the vertices of a triangle) as long as the overall shape remains convex.
Experimental Results
The method was evaluated on synthetic noisy images, real-world natural images (e.g., pandas, cats), and medical scans.
As shown in the comparison above, length-based regularization often fails to capture the full extent of the object or collapses it entirely under high weights. The convexity prior, however, produces a clean, plausible segmentation that adheres to the object's natural boundaries even in the presence of overlapping foreground/background colors.
In terms of efficiency, a 400x266 image with 8 orientations typically optimizes in approximately 4.6 seconds, demonstrating the practical viability of the DP-based approach.
Limitations and Future Work
While powerful, the trust-region framework is a local optimizer and can be sensitive to the initial guess. Furthermore, the current model enforces strict convexity, which may not be ideal for objects with natural indentations (e.g., a hand with outstretched fingers). Future research directions include developing "contrast-sensitive" convexity penalties and extending the framework to handle objects composed of multiple convex parts.
Summary updated