Local grouping for optical flow

Xiaofeng RenCVPR 2008

Introduction

Estimating optical flow—the pattern of apparent motion of objects in a visual scene—remains a fundamental challenge in computer vision, primarily due to the aperture problem. When observing a moving edge through a localized neighborhood, the true direction of motion is often ambiguous, as only the component perpendicular to the edge is visible. Resolving this requires integrating information over a larger spatial area. However, this introduces a "scale dilemma": small windows are susceptible to noise and lack sufficient texture, while large windows often straddle motion boundaries, leading to "smearing" where foreground motion leaks into the background.

Methodology: Soft Grouping and Boundary Affinities

This paper proposes a "semi-local" approach that replaces fixed geometric neighborhoods with soft grouping based on image structure. Instead of hard segmentation, which is often brittle, the method utilizes continuous affinity values to determine which pixels should share motion information.

Boundary Detection and Intervening Contours

The process begins with a "Probability-of-Boundary" (Pb) operator that identifies likely object edges based on brightness, color, and texture. The affinity between two points is then calculated using "intervening contour" logic: the connection strength is inversely proportional to the "resistance" of boundaries between them. If a strong edge exists between two points, their affinity is low, preventing mutual influence in motion estimation.

Asymmetric Affinities

A critical innovation is the use of asymmetric affinities. The resistance encountered when moving from a flat region onto an edge (up a boundary) is higher than moving from an edge into a region (down a boundary). This asymmetry assists the algorithm in correctly assigning boundary pixels to the appropriate side of an edge, effectively addressing figure-ground organization.

Illustration of motion vectors and boundary-aware grouping in the Venus sequence.

Sparse Sampling and Affine Models

To maintain computational efficiency, motion is estimated at specific high-signal features (edges and corners) and subsequently interpolated to form a dense flow map. Given that these "soft" neighborhoods can be significantly larger than traditional windows, an affine motion model is employed to account for complex transformations like rotation and scaling.

Results and Evaluation

The proposed method was evaluated on the Middlebury Flow Dataset, demonstrating substantial improvements over classical robust flow algorithms such as Black & Anandan (1996).

Original input image from the Venus sequence used for evaluation.
Sequence Baseline AAE Proposed AAE
Venus 7.30 3.93
Dimetrodon 7.77 3.34
RubberWhale 8.14 5.32

Qualitatively, the results exhibit significantly sharper motion boundaries. By constraining motion information within visual boundaries, the algorithm successfully prevents the "blurring" of foreground motion into static backgrounds, a common failure mode in local methods.

Conclusion

By leveraging image boundaries to define adaptive neighborhoods, this soft grouping approach effectively mitigates the scale dilemma in optical flow estimation. While current limitations include high computational costs and a reliance on static image features, the integration of boundary-aware affinities represents a significant step toward robust, edge-respecting motion analysis.

Summary updated

BibTeX
@inproceedings{ren2008local,
  author = {Xiaofeng Ren},
  title = {{Local grouping for optical flow}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2008},
  doi = {10.1109/cvpr.2008.4587536},
}
Figure