Deep Spherical Superpixels

Rémi Giraud, Michaël ClémentarXiv 2024

TL;DR

Researchers have developed Deep Spherical Superpixels (DSS), the first deep learning-based framework specifically designed to segment 360° omnidirectional images. By integrating spherical geometry directly into a CNN architecture and using specialized data augmentation, DSS outperforms traditional methods and standard deep learning models in accuracy and robustness.

What Problem Does This Paper Address?

Superpixel segmentation is a foundational preprocessing step in computer vision that groups pixels into meaningful, homogeneous regions. While well-optimized for standard "flat" images (like those from your phone camera), these methods struggle with omnidirectional (360°) images.

Omnidirectional images are typically stored in an equirectangular projection—think of a world map flattened onto a rectangle. This projection introduces two major headaches for standard algorithms:

  1. Extreme Distortion: Objects near the "poles" (top and bottom of the image) are stretched significantly.
  2. Horizontal Continuity: The left edge of the image is actually adjacent to the right edge. Standard CNNs treat these as hard boundaries, leading to visible seams in the segmentation.

Traditional spherical methods exist, but they rely on hand-crafted features. Modern deep learning methods for superpixels (like SSN) exist, but they are built for flat images. DSS bridges this gap.

Methods

The authors built DSS by adapting the Superpixel Sampling Network (SSN) framework to respect spherical topology. Their approach consists of three main innovations:

  • Spherical Coordinate Input: Instead of feeding the network standard 2D $(x, y)$ pixel coordinates, they provide 3D coordinates $(x, y, z)$ on a unit sphere. This allows the model to understand the true spatial relationships between pixels, regardless of projection distortion.

    Fig. 1. 2D Planar and 3D spherical system coordinates. A pixel at position [j, i] in the 2D space is mapped to a 3D point [x, y, z] on the unit sphere following (1). This point can also be represented by its respective azimuthal and polar angles θ and ϕ.
  • Spherical CNN Architecture: To handle the "wrap-around" nature of 360° images, they implemented circular padding for horizontal edges. This ensures that features extracted at the far left of the image are consistent with those at the far right, eliminating artificial vertical borders.

  • Hammersley Sampling: For initialization, instead of a regular 2D grid (which would cluster too many superpixels at the poles), they use Hammersley sampling to distribute initial superpixel centers uniformly across the 3D sphere.

    Spherical label map initialization using Hammersley sampling.
  • 360°-Specific Data Augmentation: Because annotated 360° data is scarce, they introduced augmentations like "Panoramic Stretch" and "Crop & Mirror" that create new training samples while preserving the underlying spherical geometry.

Datasets

The model was evaluated on two primary datasets:

  1. Panorama Segmentation Dataset (PSD): The gold standard for spherical superpixels, containing 75 high-resolution images with manual object segmentations.
  2. Wild PAnoramic Semantic Segmentation (WildPASS): A dataset of 500 natural road images. This study marks the first time WildPASS has been used to evaluate spherical superpixel methods.
  3. Noisy PSD: A variant of the PSD dataset with added Gaussian noise to test the model's robustness.

Key Insights and Ideas

  • Geometry is a First-Class Citizen: Simply retraining a "flat" model on spherical data isn't enough. The paper shows that without circular padding and 3D coordinate awareness, models produce irregular shapes and discontinuities at the image seams.
  • Robustness to Noise: One of the most striking findings was how well DSS handles noise. While traditional methods saw performance tank when images got grainy, the deep features learned by DSS remained stable.
  • Efficiency in Learning: By using specialized 360° data augmentations, the authors proved that deep models can be effectively trained even on very small specialized datasets (like the 55 training images in PSD).

Key Results

DSS achieved state-of-the-art results across the board:

  • Accuracy: On the PSD dataset, DSS achieved an Achievable Segmentation Accuracy (ASA) of 0.890, outperforming both traditional spherical methods (like SphSPS) and retrained planar deep models (SSN).
  • Boundary Adherence: It showed superior contour adherence, especially in noisy conditions. In the noisy PSD test, DSS maintained an ASA of 0.886, while traditional methods like SSLIC dropped significantly.
  • Qualitative Quality: Visually, DSS produces superpixels that are regular on the sphere and wrap perfectly around the horizontal boundary, unlike planar methods that create a "seam" at the edges.
Impact of circular padding on segmentation continuity.

Limitations and Future Work

The authors note that DSS, like its predecessor SSN, does not explicitly integrate a contour adherence loss. This means that while it is highly accurate, it may occasionally struggle with extremely thin objects compared to methods specifically designed for boundary recall.

Future work could involve integrating DSS into end-to-end pipelines for complex tasks like spherical depth estimation or autonomous driving perception in 360° views. The code is available on GitHub for the community to build upon.

Summary updated

BibTeX
@misc{giraud2024deep,
  author = {Rémi Giraud and Michaël Clément},
  title = {{Deep Spherical Superpixels}},
  year = {2024},
  eprint = {2407.17354},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.17354},
}
Figure