Completion energies and scale

E. Sharon, A. Brandt, R. Basri

TL;DR

This paper introduces highly efficient analytic approximations and a fast $O(N \log N)$ multigrid algorithm for curve completion in images. By incorporating the physical scale (length and width) of edge elements into the energy functional, the authors provide a computationally practical framework for finding the most likely smooth contours across gaps.

What Problem Does This Paper Address?

A fundamental task in computer vision and human perception is "perceptual grouping"—the ability to see a smooth, continuous curve even when it is fragmented by noise, low contrast, or occlusions.

Mathematically, this is often modeled by finding the curve of "least energy" between two edge elements (edgels). The gold standard for this is the elastica functional, which minimizes the total squared curvature. However, traditional elastica models face two major hurdles:

  1. Computational Complexity: Finding these curves and summing their "induction fields" (how much one edgel influences another) across an entire image is traditionally orders-of-magnitude too expensive for real-time applications.
  2. Scale Inconsistency: Most models treat edgels as dimensionless points. In reality, edge detectors have specific lengths and widths. Ignoring these dimensions leads to inconsistent results when looking at the same image at different scales.

Methods

The authors attack these problems from three angles:

1. Analytic Approximations

Instead of solving complex differential equations for every potential connection, the authors derive two closed-form approximations for the scale-invariant elastica energy:

  • Spline Energy ($E_{spln}$): Based on cubic Hermite splines.
  • Angular Energy ($E_{ang}$): A simple expression involving the angles ($\Phi_1, \Phi_2$) between the edgels and the line connecting them: $E_{ang} = 4(\Phi_1^2 + \Phi_2^2 - \Phi_1\Phi_2)$.

2. Fast Numerical Solver

For cases where approximations aren't enough, they introduce a numerical method that transforms the minimization problem into an Ordinary Differential Equation (ODE). By approximating the solution with a smooth polynomial and using Newton iterations, they achieve exponential error decay, making it much faster than previous discrete grid-based solvers.

3. Multiscale Induction Fields

The authors redefine the "affinity" (likelihood of connection) between two edgels to include the length ($l$) and width ($w$) of the filters used to detect them.

The geometry of two edge elements and the curve connecting them.

As seen in Figure 1, the relationship depends on the distance $r$ and the relative orientations. Crucially, the authors argue that a long, thin element should have a "farther-reaching and more orientation-specific" influence than a short, fat one.

4. $O(N \log N)$ Multigrid Summation

To compute the total field of completions for an $N$-pixel image, they use a multigrid algorithm. Because the induction fields are smooth and decay with distance, they can be aggregated onto coarser grids for distant interactions, reducing the total complexity to near-linear time.

Datasets

The paper does not use standard public benchmarks (which were less common in 1997). Instead, it evaluates the algorithm on:

  • Synthetic test patterns: Such as fragmented "figure-8" shapes.
  • Natural images: Including photos of leaves and bottles to demonstrate contour extraction in complex, real-world scenes.

Key Insights and Ideas

  • Scale-Dependent Behavior: A key "aha" moment is that the field of a long element is not simply the sum of the fields of its shorter components. Long elements provide stronger, more directional constraints on curve completion.
  • Small-Angle Dominance: Perceptual completion mostly happens when edgels are nearly collinear. In this regime, the complex elastica math simplifies beautifully into the authors' angular energy formula.
  • Asymptotic Smoothness: The authors prove that their induction kernels are "asymptotically smooth," which is the mathematical property that allows multigrid methods to achieve such high efficiency.

Key Results

  • Accuracy: The simple Angular Energy formula ($E_{ang}$) provides an extremely close match to the true elastica energy, even when the edgels deviate significantly from being co-circular.
  • Efficiency: The multigrid approach allows the summation of all induction fields in $O(N \log N)$ operations, a massive improvement over the $O(N^2)$ or $O(N^3)$ approaches common at the time.
  • Qualitative Success: The method successfully extracts salient contours from noisy images where standard edge detectors (like Canny) produce fragmented or cluttered results.

Limitations and Future Work

  • Small Angle Assumption: The analytic approximations are most accurate when the total turning angle is relatively small. While this covers most "perceptual" cases, it may struggle with very sharp corners.
  • Symmetry: The authors note that some variations of their energy (like $E_{circ}$) are non-symmetric, which might complicate certain global optimization frameworks.
  • Future Directions: The authors suggest extending this work to simultaneously detect completions across all scales and merge them into a single, unified "saliency map" of the image.

Summary updated

BibTeX
@inproceedings{sharoncompletion,
  author = {E. Sharon and A. Brandt and R. Basri},
  title = {{Completion energies and scale}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  doi = {10.1109/cvpr.1997.609432},
}
Figure