Abstract
We propose a polynomial-time algorithm for segmentation and (open) boundary estimation which takes into account a series of user-specified attraction points. In contrast to existing algorithms which impose that the segmenting boundary passes through these points, our algorithm allows an imprecision in the user input. An energy minimization approach imposes that the segmenting boundary optimally passes along high-contrast edges in such a way that at least one point along the computed boundary is as close as possible to any given attraction point. In this sense, the user input can be seen as a soft constraint. We prove that the resulting optimization problem is NP-hard. We prove that in the case that the user attraction points are ordered, then optimal solutions can be computed in polynomial time using a shortest path formulation in an appropriately constructed four-dimensional graph spanned by the image pixels, a set of tangent angles and the user attraction points. Experimental results on a variety of images demonstrate that good quality segmentations can be obtained with a few imprecise user clicks.
Introduction
Interactive image segmentation typically relies on two paradigms: region-based methods (like Graph Cuts) or boundary-based methods (like "Intelligent Scissors"). Region-based methods often struggle when object and background textures are similar, while boundary-based methods suffer from "precision fatigue." In the latter, users must click exactly on the edge; a single misplaced click can ruin the entire segmentation. This paper introduces a robust alternative that treats user clicks as "attraction points"—soft constraints that guide the boundary toward high-contrast edges without requiring perfect placement.
Methodology
The core of the proposed method is an energy minimization function that balances edge alignment (favoring high-intensity gradients), curvature regularity (ensuring smoothness), and attraction point proximity.
While finding an optimal boundary for unordered points is NP-hard, the authors demonstrate that requiring ordered user input (e.g., clockwise or counter-clockwise) makes the problem tractable. They construct a multi-dimensional layered graph where each layer represents a state of progress in accounting for the user's attraction points.
In this layered architecture, edges within a layer represent movement along the image boundary, while edges between layers represent the "passing" of a specific attraction point. The transition weight is determined by the distance from the current pixel to that attraction point. By extending this to a 4D graph including tangent angles to handle curvature, the optimal boundary is found via a shortest-path search using Dijkstra’s algorithm.
Experimental Results
The algorithm was tested on challenging scenes from the Berkeley Image Database, focusing on objects that are difficult to distinguish from their backgrounds based on color alone, such as a lion in rocky terrain.
Key results include:
- Robustness to Imprecision: The method produces high-quality segmentations even when user clicks are significantly offset from the true boundary.
- Versatility: Unlike many region-based methods, this approach naturally handles both open curves and closed object boundaries.
- Superior Performance: Qualitative tests show the method outperforms popular tools like Graph Cut and TVSeg in complex scenarios with overlapping color histograms, requiring fewer user clicks to achieve a clean result.
Discussion and Conclusion
By treating user input as a "soft" constraint—similar to a rubber band pulling the boundary toward a click—the algorithm allows image data (gradients) to take precedence when the user is slightly off-target. While the requirement for ordered points is a constraint, it is a practical trade-off that reduces computational complexity from NP-hard to polynomial time. Future work may focus on reducing the memory overhead of the 4D graph and automating the estimation of weighting parameters for attraction and curvature.
Summary updated