Enabling warping on stereoscopic images

Yuzhen Niu, Wu-chi Feng, Feng LiuACM Trans. Graphics 2012

TL;DR

This paper introduces a novel technique to extend existing 2D image warping algorithms to stereoscopic images without introducing problematic vertical disparities or distorting the perceived 3D shape. Their method warps the left image, computes an optimized target disparity map that preserves 3D form, and then warps the right image accordingly, enabling a wide range of warping effects for stereoscopic content.

What Problem Does This Paper Address?

Stereoscopic images, composed of a left and right view, offer a sense of depth. However, applying standard 2D image warping techniques (like rotation or scaling) independently to each view often leads to undesirable artifacts. The primary issues are:

  • Vertical Disparities: When the same warping is applied to both views, corresponding points can be shifted vertically, causing eye strain and discomfort ("3D fatigue").
  • Disparity Distortion: The original horizontal disparity, which encodes the depth information, gets altered in a way that can flatten or distort the perceived 3D shape of objects, leading to a less natural viewing experience (e.g., "cardboarding" effect where objects appear flat).

Existing tools for 2D image manipulation are not directly applicable to stereoscopic content because they don't account for this crucial depth dimension. This paper aims to bridge this gap by providing a method to apply arbitrary warping to stereoscopic images while preserving visual comfort and the integrity of the 3D scene.

Methods

The proposed technique breaks down stereoscopic image warping into a three-step process, building upon existing 2D warping and stereo matching techniques:

  1. Warp the Left Image: The user-specified 2D warping is applied directly to the left image of the stereoscopic pair. This establishes the desired visual transformation for one view.
  2. Compute Optimal Target Disparity Map: This is the core innovation. Instead of simply keeping the original disparity map or applying a naive transformation, the authors compute a target disparity map. This map is optimized to preserve the perceived 3D shape of objects after warping. The key idea is to scale the local disparity range based on how the corresponding image region is warped. For instance, if an object is stretched horizontally, its disparity should also be stretched to maintain its perceived roundness. This is achieved by minimizing an energy function that balances matching the local image scaling with preserving disparity relationships. A crucial boundary condition ensures that objects with small disparities (often in the comfort zone) are handled appropriately.
  3. Warp the Right Image: The right image is then warped using a spatially-varying warping method guided by the target disparity map computed in the previous step. This ensures that the right image not only follows the user's warping intent but also aligns correctly with the warped left image and maintains the desired disparity distribution. A "pre-warping" step is introduced for complex warps, where the right image is first warped with the same user-specified transformation as the left image, simplifying the subsequent disparity-guided warping.

Datasets

Not explicitly discussed in the paper. The authors use various stereoscopic images for demonstration and evaluation, including examples from Flickr and "Elephants Dream."

Key Insights and Ideas

  • Disparity Scaling for 3D Shape Preservation: The most significant insight is that to maintain the perceived 3D shape (e.g., roundness of a ball) after warping, the disparity map must be scaled proportionally to the local image warping. Simply preserving original disparities leads to flattened objects.
  • Bridging 2D and 3D Warping: The method elegantly extends existing 2D warping algorithms by treating stereoscopic warping as a problem involving both image geometry and disparity geometry.
  • Importance of the Target Disparity Map: The paper highlights that a well-computed target disparity map is crucial for achieving comfortable and visually pleasing stereoscopic warping.
  • Pre-warping for Complex Warps: Introducing a pre-warping step for the right image simplifies complex warping scenarios and reduces artifacts, making the overall process more robust.

Key Results

The paper demonstrates that their technique successfully enables a wide range of warping algorithms (parametric like similarity and affine transformations, and non-parametric like content-aware retargeting and object resizing) to be applied to stereoscopic images.

  • Qualitative Results: Figures and examples showcase impressive results, showing stereoscopic images that are warped (e.g., rotated, scaled, retargeted) without visible vertical disparities and with preserved 3D object shapes.
  • User Study: A user study confirmed that participants could comfortably perceive stereopsis with the warped images and rated the results favorably (average scores of 2.63/3.0 for comfort and 2.65/3.0 for liking). The study also showed that users could correctly identify roundness distortions when original disparities were maintained, validating the need for their disparity scaling approach.
  • Performance: The method achieves real-time performance for disparity map estimation (around 60 fps) and reasonable performance for the final warping (around 10 fps for a 64x36 mesh).

Limitations and Future Work

  • Boundary Inconsistency: The authors acknowledge that the boundary of the warped right image may not always be perfectly consistent with the left image, sometimes requiring slight cropping. This is noted as a difficult problem, especially for aggressive warps, where boundary constraints can conflict with disparity constraints.
  • Feature Matching Dependency: The quality of the results depends on the accuracy of feature matching and disparity estimation. Regions with few features can still pose challenges.
  • Future Work: The authors plan to extend their method to stereoscopic video warping, which would involve handling temporal consistency in addition to spatial warping. They also suggest that experienced users could further refine the computed disparity maps using dedicated tools.

Summary updated

BibTeX
@article{niu2012enabling,
  author = {Yuzhen Niu and Wu-chi Feng and Feng Liu},
  title = {{Enabling warping on stereoscopic images}},
  journal = {ACM Trans. Graphics},
  year = {2012},
  doi = {10.1145/2366145.2366202},
}
Figure