PanoFlow: Learning Optical Flow for Panoramic Images

Hao Shi, Yifan Zhou, Kailun Yang, Yaozu Ye, Xiaoting Yin, Zhe Yin, Shi Meng, Kaiwei Wang

Introduction

Optical flow—the estimation of per-pixel motion between consecutive frames—is a fundamental task in computer vision, particularly for autonomous navigation and robotics. While standard "pinhole" camera models are well-understood, 360° panoramic imaging presents unique challenges that traditional methods fail to address. PanoFlow is a novel framework designed to estimate 360° optical flow by overcoming severe geometric distortions and boundary "jumps" inherent in panoramic projections. By integrating flow-specific data augmentation and a "Cyclic Flow Estimation" method, PanoFlow achieves a remarkable 55.5% error reduction over previous state-of-the-art methods.

Panoramic images and their corresponding optical flow. (a) and (b) show images from a Panoramic Annular Lens (PAL), while (c) shows the converted equirectangular projection (ERP) and flow results.

The Challenges of Panoramic Flow

Panoramic images are typically represented using Equirectangular Projection (ERP), which maps a sphere onto a flat rectangle. This process introduces two primary hurdles:

  1. Geometric Distortion: Similar to how Greenland appears disproportionately large on a Mercator map, objects in an ERP image stretch and deform based on their latitude. Standard convolutional neural networks (CNNs) struggle to extract consistent motion cues from these non-rigid deformations.
  2. Boundary Cyclicity: In a 360° view, the left and right edges of the image are spatially adjacent. When an object crosses this "seam," a standard model perceives a massive, long-distance jump across the entire image width. In reality, this is a continuous, short-distance movement across a spherical boundary.

The PanoFlow Framework

PanoFlow introduces three key technical innovations that can be integrated into existing flow architectures like RAFT or CSFlow:

Flow Distortion Augmentation (FDA)

Traditional data augmentations do not account for the unique spatial distortions of ERP. PanoFlow utilizes FDA-R (Radial) and FDA-E (Equirectangular) to simulate these distortions during training. Crucially, the framework mathematically calibrates the ground-truth flow vectors, ensuring the model learns how motion itself is distorted by the projection, rather than just warping the image pixels.

Cyclic Flow Estimation (CFE)

To resolve the boundary problem, CFE leverages the spherical nature of the data. By splitting and regrouping the left and right halves of the image features, the model can "see" the boundary as if it were the center of the image.

The Cyclic Flow Estimation (CFE) mechanism. (a) illustrates the shortest path principle on a sphere, where motion can occur across the boundary. (b) shows how this maps to the ERP image, allowing the model to estimate flow across the 'seam' as a short-distance movement.

The core insight here is the Shortest Path Principle: treating 360° flow as a search for the shortest arc on a sphere. CFE calculates two potential flow paths and selects the shortest one, effectively converting a difficult long-distance estimation into a simple short-distance task.

Deformable Receptive Field Encoder

The framework replaces the initial layer of standard feature encoders with a Deformable Convolutional Layer. This allows the network’s receptive fields to change shape dynamically, better capturing features that have been squashed or stretched by the panoramic projection.

Datasets and Evaluation

The authors identified a significant gap in existing panoramic datasets and introduced FlowScape, a synthetic dataset based on the CARLA simulator. FlowScape contains 6,400 frames across diverse urban environments and weather conditions, providing high-quality ground truth for flow, semantics, and depth.

The framework was also evaluated on several benchmarks including OmniFlowNet, Replica360, and SynWoodScape. Real-world validation was performed using the OmniPhotos dataset and custom data collected via a mobile robot equipped with a Panoramic Annular Lens (PAL).

Key Results

PanoFlow demonstrates significant improvements in both accuracy and visual quality:

  • State-of-the-Art Accuracy: On OmniFlowNet, PanoFlow achieved an End-Point-Error (EPE) of 3.17 pixels—a 55.5% reduction compared to the previous best result of 7.12 pixels.
  • Robustness: On the FlowScape benchmark, the framework reduced EPE by 27.3% compared to baseline models.
  • Efficiency: Inference remains computationally efficient (~0.13s to 0.14s per frame), making it suitable for real-time robotics applications.
  • Visual Fidelity: Qualitative results show sharper motion boundaries, particularly for objects crossing the vertical "seam," where traditional models often produce blurred artifacts.

Conclusion and Future Work

PanoFlow provides a robust set of strategies for panoramic optical flow that are architecture-agnostic. While highly effective, the method can struggle in environments with extreme overexposure or a lack of texture, where feature matching across the "seam" becomes difficult. Future research will explore extending these concepts to 3D scene flow, integrating LiDAR fusion for outdoor robustness, and utilizing event cameras to handle high-dynamic-range scenes.

Summary updated

BibTeX
@article{shi2023panoflow,
  author = {Hao Shi and Yifan Zhou and Kailun Yang and Yaozu Ye and Xiaoting Yin and Zhe Yin and Shi Meng and Kaiwei Wang},
  title = {{PanoFlow: Learning Optical Flow for Panoramic Images}},
  journal = {IEEE Trans. Intell. Transp. Syst.},
  year = {2023},
  doi = {10.1109/tits.2023.3241212},
}
Figure