360° Optical Flow using Tangent Images

Mingze Yuan, Christian Richardt

Abstract

Estimating optical flow in 360° video is notoriously difficult due to the severe distortions inherent in Equirectangular Projections (ERP). Traditional perspective-based algorithms struggle with the curved paths and polar distortions present in these formats. This paper introduces a novel framework that projects spherical images onto a series of flat "tangent images" using cubemaps and icosahedrons. By decomposing the sphere into overlapping planar faces, standard perspective optical flow algorithms can be applied without retraining. The method incorporates global rotation warping and hierarchical refinement to achieve state-of-the-art accuracy, demonstrating a nearly 10x improvement in precision over existing specialized 360° methods on synthetic benchmarks.

Introduction: The Challenge of 360° Projection

Most 360° video is stored in Equirectangular Projection (ERP), a format similar to a standard flat map of the Earth. While convenient for storage, ERP introduces massive distortion at the poles and a "seam" where the left and right edges meet.

Standard optical flow algorithms, such as RAFT or PWC-Net, are designed for perspective images where straight lines remain straight. When applied to ERP, these algorithms struggle because objects moving in straight lines in the real world appear to follow curved, distorted paths in the image. Furthermore, pixels that "wrap around" the edge of the 360° frame are often lost or miscalculated by traditional methods.

Illustration of the spherical wrap-around effect and the challenge of mapping 3D motion to a 2D plane.

Proposed Methodology

The authors propose a "divide and conquer" approach using gnomonic projection. Instead of processing the distorted ERP image directly, they break the sphere into multiple overlapping flat planes called tangent images. This allows the system to be algorithm-agnostic, utilizing any off-the-shelf perspective optical flow method.

The hierarchical refinement pipeline, showing the transition from global optical flow to cubemap and icosahedron tangent image processing.

1. Global Rotation Warping

To handle large camera movements, the system first estimates a global rotation between frames and "pre-aligns" them. This significantly reduces the search space for the subsequent flow algorithms.

2. Hierarchical Refinement

The refinement process occurs in two primary stages:

  • Cubemap Stage: The image is projected onto the six faces of a cube. These wide-angle views are used to estimate coarse flow and further refine the global rotation.
  • Icosahedron Stage: The image is then projected onto the 20 faces of a regular icosahedron. These narrower views provide higher angular resolution and minimal perspective distortion, allowing for fine-scale flow estimation.

3. Tangent Image Blending

Since each face is processed independently, the authors use a photometric consistency weight to blend overlapping regions. This ensures smooth transitions and eliminates visible "seams" at the edges of the polyhedral faces. Additionally, the flow is defined as the shortest path along the "great circle" of the sphere, naturally handling horizontal wrap-around ambiguity.

Experimental Evaluation

Datasets

The method was evaluated using two primary sources:

  • Replica Dataset: A synthetic dataset of high-quality 3D indoor environments. The authors implemented a custom ERP camera model to render ground-truth 360° images and flow fields for various motion types (Circle, Line, and Random).
  • OmniPhotos: A real-world dataset consisting of diverse 360° videos used for qualitative evaluation, specifically visualizing how well the flow can warp one frame to match the next.

Key Results

The proposed method significantly outperformed existing state-of-the-art 360° methods like OmniFlowNet. On the Replica dataset, the Spherical Average Endpoint Error (SEPE) for the "Circle" motion path was 0.00537, compared to 0.06025 for OmniFlowNet—representing nearly a 10x improvement in precision. Qualitative heatmaps further confirmed that while other methods fail at the poles, this method maintains high accuracy across the entire spherical field.

Discussion and Future Work

While the framework provides superior accuracy, it faces challenges with large camera translations (moving through space) which create complex parallax that simple rotation warping cannot fully align. Additionally, processing 20+ tangent images per frame introduces computational overhead; the current Python implementation processes a 1280×640 image pair in approximately 20 seconds. Future work will focus on meshgrid-based warping to pre-align both rotational and translational motions, further improving performance in complex dynamic scenarios.

Summary updated

BibTeX
@inproceedings{yuan2021optical,
  author = {Mingze Yuan and Christian Richardt},
  title = {{360° Optical Flow using Tangent Images}},
  booktitle = {BMVC},
  year = {2021},
}
Figure