Computing Geodesics and Minimal Surfaces via Graph Cuts

Yuri Boykov, Vladimir KolmogorovICCV 2003

Introduction

The 2003 paper by Yuri Boykov and Vladimir Kolmogorov represents a landmark in computer vision, establishing a rigorous mathematical link between continuous geodesic active contours and discrete graph cuts. This synthesis allows for the discovery of globally optimal, smooth surfaces in images, bypassing the "blocky" artifacts that plagued earlier discrete methods.

The Challenge: Smoothness vs. Optimality

Historically, image segmentation was divided into two competing paradigms:

  1. Geodesic Active Contours (Level Sets): These methods treat segmentation as a continuous optimization problem. While they produce smooth boundaries, they are prone to local minima, often failing to find the globally best solution if initialized poorly.
  2. Graph Cuts: These treat images as discrete grids. They are computationally efficient and find global minima but suffer from metrication errors. Due to the grid structure, the "shortest path" often defaults to a jagged Manhattan distance rather than a smooth Euclidean curve.

Methodology: The Geocuts Approach

The authors' primary innovation is the concept of "cut metrics." By viewing a graph cut—the set of edges removed to separate an object from its background—as a discrete approximation of a continuous surface, they applied the Cauchy-Crofton formula from integral geometry to calibrate edge weights.

Integral Geometry and Edge Weighting

The Cauchy-Crofton formula relates the length of a curve to the density of lines intersecting it. By setting graph edge weights based on this principle, discrete cuts can converge to continuous geometric lengths.

The Cauchy-Crofton formula relates curve length to the number of intersections with random lines.

To implement this, the "Geocuts" recipe involves:

  • Neighborhood Systems: Moving beyond 4-connectivity to 8, 16, or 26 neighbors to improve angular resolution.
  • Weight Calculation: Edges are weighted using a formula that accounts for pixel size, edge length, and the angular space represented: $w_k = \frac{\delta^2 \cdot \Delta\phi_k}{2 \cdot |e_k|}$.
  • Riemannian Generalization: The method extends to anisotropic metrics, allowing the "cost" of a boundary to vary based on local image features like gradients.

Optimization via Max-Flow/Min-Cut

Once the graph is constructed with appropriate weights and "seeds" (user-defined object/background points), the optimal segmentation is found using a standard max-flow/min-cut algorithm.

The min-cut algorithm finds the optimal boundary by partitioning the graph into object (S) and background (T) terminals.

Key Results and Insights

  • Convergence: The authors proved that as grid density and neighborhood connectivity increase, the graph cut cost converges exactly to the continuous Riemannian length or area.
  • Artifact Elimination: Using larger neighborhood systems (e.g., 26-connectivity in 3D) effectively removes the "diamond-shaped" artifacts common in simpler grid graphs.
  • Topological Flexibility: Like level sets, Geocuts naturally handle complex topologies, including objects with holes or multiple disconnected components.
  • Efficiency: The algorithm demonstrated high performance on 2003-era hardware, processing large 3D CT and MRI volumes (e.g., liver and lung scans) in under a minute.

Conclusion

Boykov and Kolmogorov's work provided a unified framework for geometric optimization. While it introduced higher memory requirements due to increased graph connectivity, it solved the long-standing problem of metrication errors in graph-based segmentation, ensuring that discrete solutions remain faithful to continuous geometry.

Summary updated

BibTeX
@inproceedings{boykov2003computing,
  author = {Yuri Boykov and Vladimir Kolmogorov},
  title = {{Computing Geodesics and Minimal Surfaces via Graph Cuts}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2003},
  doi = {10.1109/iccv.2003.1238310},
}
Figure