3D View Optimization for Improving Image Aesthetics

Taichi Uchida, Yoshihiro Kanamori, Yuki EndoarXiv 2024

TL;DR

This paper introduces a method for "aesthetic retrospective rephotography," allowing users to improve a photo's composition by virtually re-shooting it in 3D. By combining image extrapolation (outpainting), 3D scene reconstruction, and global optimization of camera parameters, the system finds the most aesthetically pleasing viewpoint and aspect ratio, significantly outperforming traditional 2D cropping techniques.

What Problem Does This Paper Address?

Capturing a perfectly composed photograph is difficult for novices. While post-capture editing tools exist, most are limited to 2D operations like cropping or stretching. These methods are inherently constrained: if the original framing was poor—for example, if a subject is too close to the edge—cropping can only do so much. Furthermore, 2D methods cannot change the camera's perspective, rotation, or field-of-view (FOV) after the shutter has clicked.

The authors aim to break these 2D boundaries by treating a single 2D image as a gateway to a 3D scene, allowing for a much broader search space for aesthetic improvement.

Methods

The authors propose a multi-stage pipeline to optimize the "view" of a captured scene:

  1. Preliminary Image Extrapolation: To prevent the camera from immediately seeing "off-canvas" black regions during optimization, the input image is expanded using Adobe Photoshop’s generative fill. This provides a buffer of hallucinated content that widens the search space.
  2. 3D Scene Reconstruction: The system estimates a depth map from the extrapolated image and reconstructs a 3D point cloud. This represents the scene's geometry, allowing for virtual camera movement.
  3. Camera Parameter Optimization: The core of the method is an optimization loop. The system searches for the best camera translation ($t$), rotation ($\theta$), and vertical field-of-view ($\theta_{fovy}$), along with optimal image aspect ratios.
  4. Aesthetic Evaluation: To guide the search, the authors use a pre-trained View Evaluation Net (VEN), which assigns an aesthetic score to any rendered view.
  5. Global Search via CMA-ES: The authors discovered that standard gradient-based optimizers (like Adam) frequently get stuck in local minima because the aesthetic landscape is highly non-convex. They instead utilize Covariance Matrix Adaptation Evolution Strategy (CMA-ES), a black-box optimization algorithm, to find global optima more reliably.
Figure 1. Overview of our method. The input image is first extrapolated in the pre-processing and then fed to a 3D reconstruction method [20] to obtain a point cloud that represents the 3D scene. Our method finds optimal camera parameters that maximize the aesthetic score [21] of the rendered image through an optimization loop.

Datasets

The method was evaluated using test images from three established aesthetic and cropping datasets:

  • FCDB: 309 test images.
  • FLMS: 500 test images.
  • GAICD: 500 test images.

These datasets provide a diverse range of subjects and compositions to test the robustness of the 3D reconstruction and optimization process.

Key Insights and Ideas

  • 3D > 2D: By moving into 3D space, the system can perform "virtual dolly shots" or change the camera tilt, which is impossible with 2D cropping. This allows for dramatic improvements in composition, such as turning a vertical shot into a horizontal one to better capture a landscape.
  • The "Local Minima" Trap: Aesthetic scores are not smooth functions. The authors found that gradient-based methods barely improved the input images, whereas the evolutionary CMA-ES approach led to "drastically changed" and superior views.
  • Regularization is Critical: Moving the camera too far in a reconstructed 3D scene inevitably reveals the "void" behind the point cloud. The authors introduced a mask-based regularization term to penalize views that include these unphotographed regions.

Key Results

The method was compared against several state-of-the-art 2D cropping methods (VPN, VEN, CGS, CAC, UNIC).

  • Quantitative: In terms of VEN aesthetic scores, the proposed method achieved a total score of 3.36, nearly four times higher than the input average (0.94) and significantly higher than the best 2D cropping method (VEN at 0.94).
  • Qualitative: As shown in Figure 4, the 3D method often chooses wider, more immersive views that capture the structure of the scene, whereas 2D methods are forced to zoom in and lose context.
  • User Study: In a study with 64 subjects, the proposed method was chosen as the most aesthetically pleasing 45.9% of the time, compared to 24.3% for the next best method (VEN).
Qualitative comparison showing the dramatic composition changes possible with 3D optimization

Limitations and Future Work

Despite the impressive results, the authors note several hurdles:

  • Extrapolation Artifacts: The quality of the result is heavily dependent on the generative fill. If the AI hallucinates nonsensical objects at the borders, the optimizer might mistakenly find them "aesthetic."
  • Reconstruction Gaps: Point clouds reconstructed from a single view are often sparse or contain "holes" when viewed from extreme angles.
  • Out-of-Bounds Regions: Even with regularization, black regions can appear if the camera translation is too aggressive.

Future work aims to explore more complex camera settings like virtual bokeh (depth-of-field control), motion blur, and exposure adjustments to further the goal of "aesthetic retrospective rephotography."

Figure 2. Failure cases. Blue arrow: unphotographed regions. Green arrow: unsatisfactory objects created by image extrapolation. Red arrow: gap in the point cloud.

Summary updated

BibTeX
@misc{uchida2024d,
  author = {Taichi Uchida and Yoshihiro Kanamori and Yuki Endo},
  title = {{3D View Optimization for Improving Image Aesthetics}},
  year = {2024},
  eprint = {2405.16443},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.16443},
}
Figure