TriangleFlow: Optical Flow with Triangulation-Based Higher-Order Likelihoods

Ben Glocker, Tim Hauke Heibel, Nassir Navab, Pushmeet Kohli, Carsten Rother

Abstract

Estimating optical flow remains a fundamental challenge in computer vision, primarily due to the aperture problem and the limitations of the "constant flow" assumption in traditional discrete methods. We present TriangleFlow, a Conditional Random Field (CRF) framework that utilizes triangulation meshes to model local affine warps. By defining higher-order likelihoods over triangular patches, our method enables joint reasoning over groups of pixels, providing robust motion estimates for complex deformations. We introduce novel regularization terms—the Angle Deviation Penalty (ADP) and Non-Affine Motion Penalty (NAMP)—to maintain mesh integrity. Evaluation on standard benchmarks demonstrates that TriangleFlow effectively handles non-rigid motion and occlusions with high precision.

Introduction

Optical flow estimation—the process of determining pixel-wise motion between consecutive frames—is often hampered by the aperture problem, where local motion is ambiguous in textureless regions. Existing approaches typically fall into two categories: variational methods, which are accurate but sensitive to local minima, and discrete methods, which are robust but often constrained by a "constant flow" assumption within small patches. This assumption fails to capture real-world dynamics like rotation, scaling, and shearing.

TriangleFlow addresses these limitations by rethinking the underlying parameterization of motion. Instead of independent pixel displacements or rigid blocks, we employ a triangulation mesh where motion is defined by the affine warping of triangular elements.

Methods: Triangulation and Higher-Order Likelihoods

The core of TriangleFlow is a triangulation-based parameterization. The image domain is partitioned into a mesh of triangles. The motion of any interior pixel is uniquely determined by the displacement of its triangle's three vertices, representing an exact affine warp.

Triangulation-based parameterization of local affine motion.

Higher-Order Likelihood

The data term in our CRF is formulated as a higher-order likelihood. We calculate the Correlation Coefficient (CC) over the entire area of each triangle. Because this potential depends on the positions of three vertices simultaneously, it constitutes a "triple-clique" potential, allowing for more robust matching than point-to-point comparisons.

Regularization and Constraints

To prevent unnatural mesh distortions, we propose two higher-order regularization terms:

  1. Angle Deviation Penalty (ADP): A triple-clique term that penalizes changes in a triangle's internal angles, effectively regularizing toward similarity transformations (rotation and scaling).
  2. Non-Affine Motion Penalty (NAMP): A quadruple-clique term defined over adjacent triangles. It ensures that neighboring patches move consistently, enforcing a global smoothness that accommodates general affine motion.

Optimization and Hierarchical Refinement

We optimize the energy function using hierarchical fusion moves and the QPBO-I algorithm. The process begins with a coarse mesh to capture large displacements. As the optimization progresses, the mesh is adaptively refined by splitting triangles in regions with high motion complexity or texture detail.

Hierarchical mesh refinement on a complex object (Teddy sequence).

This refinement strategy is crucial; however, we observe a "critical point" where triangles smaller than approximately 25–100 pixels may lead to less reliable estimates due to insufficient local texture information.

Results and Discussion

TriangleFlow was evaluated on the Middlebury Optical Flow Database and challenging sequences like the "Giraffe" (non-rigid deformation) and "RubberWhale." * Accuracy: The multi-layer version of the model excels at preserving motion discontinuities, ranking competitively on the Middlebury leaderboard. * Efficiency: ADP regularization is computationally efficient, converging significantly faster than the more complex NAMP. * Robustness: The layered representation allows the model to handle occlusions naturally by allowing overlapping meshes for foreground and background elements.

Conclusion

TriangleFlow demonstrates that higher-order likelihoods defined over triangular meshes provide a powerful alternative to traditional optical flow methods. By modeling affine warps directly, the framework achieves a balance between global robustness and local precision. Future work will focus on GPU acceleration for likelihood evaluation and integrating the triangulation process directly into the optimization loop.

Summary updated

BibTeX
@inproceedings{glocker2010triangleflow,
  author = {Ben Glocker and Tim Hauke Heibel and Nassir Navab and Pushmeet Kohli and Carsten Rother},
  title = {{TriangleFlow: Optical Flow with Triangulation-Based Higher-Order Likelihoods}},
  booktitle = {European Conference on Computer Vision},
  year = {2010},
  doi = {10.1007/978-3-642-15558-1\_20},
}
Figure