Source-linked AI summary

Rendering Synthetic Objects into Legacy Photographs

Kevin Karsch, Varsha Hedau, David Forsyth, Derek Hoiem

arXiv:1912.11565v1cs.GR

TL;DR

Inserting synthetic objects into legacy photographs normally requires scene access, specialized equipment, or laborious manual modeling of geometry and lighting. The paper uses a single image plus limited annotation to construct a physical scene model for rendering and compositing objects, and reports realistic results that are often confused with real images and compare favorably with other insertion methods. The approach remains constrained by difficult intrinsic-image and complex-material estimation, particularly for specular surfaces.

  • Problem

    Realistic object insertion requires geometry and lighting estimates, but existing workflows demand scene access, specialized equipment, multiple photographs, or painstaking expert labor.

  • Method

    The method combines automatic coarse geometry and camera estimation with user image-space annotations, intrinsic-image decomposition, light refinement, and rendering/compositing.

  • Results

    The resulting synthetic images are often confused with real images, compare favorably with other state-of-the-art insertion methods, and support realistic lighting interactions and materials.

  • Takeaways & Limitations

    A few quick annotations can let novice users create professional-quality insertions without accessing the scene or using previously required tools.

  • Takeaways & Limitations

    Intrinsic image extraction may fail for difficult diffuse scenes or non-diffuse surfaces, while complex materials such as specular BRDFs may require manual edits.

Abstract

from arXiv · show

We propose a method to realistically insert synthetic objects into existing photographs without requiring access to the scene or any additional scene measurements. With a single image and a small amount of annotation, our method creates a physical model of the scene that is suitable for realistically rendering synthetic objects with diffuse, specular, and even glowing materials while accounting for lighting interactions between the objects and the scene. We demonstrate in a user study that synthetic images produced by our method are confusable with real scenes, even for people who believe they are good at telling the difference. Further, our study shows that our method is competitive with other insertion methods while requiring less scene information. We also collected new illumination and reflectance datasets; renderings produced by our system compare well to ground truth. Our system has applications in the movie and gaming industry, as well as home decorating and user content creation, among others.

1 Introduction

The paper addresses the difficult, expertise-intensive task of inserting 3D synthetic objects into photographs by recovering sufficient scene geometry and lighting from a single image with limited annotation. Its system automatically builds a physical scene model so inserted objects can be rendered and composited with realistic perspective, materials, and lighting interactions.

  • Existing insertion workflows require manually created scene geometry and lighting captured or modeled with specialized equipment, multiple photographs, or manual source modeling.These requirements make the process painstaking and expertise-intensive.
  • The method uses a single photograph and small amounts of annotation to recover scene geometry, light-source properties, and light shafts without access to the original scene or additional aids.It automatically estimates rough geometry, then uses image-space annotations for additional geometry and lighting information.
  • The recovered models support rendering diffuse, specular, and glowing materials while accounting for lighting interactions between inserted objects and the surrounding scene.
  • A user study found the method’s synthetic scenes confusable with real scenes, while comparisons showed competitiveness with other insertion methods using less scene information.The paper also reports that the lighting model is physically meaningful through ground-truth evaluation.
  • The system automatically computes a 3D scene containing a physical light model, surface materials, and camera parameters before rendering and compositing user-placed synthetic objects.The resulting objects are intended to follow the scene’s perspective and geometry and appear naturally lit.

2 Related work

Related work provides tools for single-image modeling, image-based object insertion, and intrinsic-image illumination estimation, but the paper combines these ideas for physically informed insertion. Unlike methods focused on novel-view geometry or exemplar blending, its geometry supports illumination inference and occlusion handling.

  • Light-probe methods can capture physically accurate radiance maps but require HDR probe photographs, environment-map conversion, and manual scene geometry and material modeling.
  • Image-based content creation simplifies object insertion through database matching, blending, and shadow transfer, but requires a suitable exemplar and prevents inserted objects from participating in scene illumination.
  • Single-view 3D modeling methods construct geometry for novel-view synthesis, whereas this paper uses geometry to infer illumination and handle perspective and occlusion effects.The system can use simple box-like scene models, planar billboards for occluders, and single-view metrology for placement on supporting surfaces.
  • The method uses intrinsic-image decomposition into albedo, direct illumination, and indirect illumination, with geometric estimates improving illumination and material estimation.
  • Its lighting algorithm initializes user-defined light primitives, decomposes the image using modeled geometry, and reestimates light parameters before compositing the refined result.Figure 3 contrasts compositing with initial versus optimized light parameters.

3 Modeling

The system uses limited user annotation and automatic estimation to recover sufficient scene geometry, materials, and physical lighting from a single photograph. It then renders and composites inserted objects while modeling interior and exterior lighting interactions.

  • Geometry: Coarse scene geometry and camera pose are estimated automatically, while users can correct errors and annotate supporting or nearby geometry.The method reports that simple models generally suffice, with no additional complex geometry required for the paper’s results.
  • Lighting: The method estimates a physical lighting model for both interior emitters and exterior directional light shafts from a single image with user guidance.Users mark light sources or shaft regions; the system refines source parameters and estimates shaft direction and masks.
  • Lighting: Lighting parameters are refined by minimizing squared pixel-wise differences between the rendered image and the target image, with weights constraining parameters near initial estimates.The objective downweights pixels near the ground because geometry estimates are generally less reliable there.
  • Pipeline: The pipeline estimates geometry and lighting, inserts synthetic objects, and renders the result for compositing into the original image.Algorithm 1 organizes these operations into geometry and material estimation, light refinement and shaft detection, then rendering and compositing.
  • Materials and decomposition: Intrinsic decomposition models the observed image as direct plus indirect reflected light, using estimated geometry to infer albedo and direct illumination.The decomposition uses B = D + ρΓ as an optimization constraint with bounded albedo and nonnegative direct light.
  • Rendering interactions: The recovered scene lighting produces interreflected color effects, including red light from an inserted dragon and a red tint on an inserted sphere’s underside.These interactions demonstrate that inserted objects participate in the scene’s lighting rather than being merely blended into the image.

4 Implementation details

Implementation begins with rough bounding geometry and camera-pose estimation, then supports user-authored extruded and occluding geometry. Estimated albedo is projected onto the scene geometry as diffuse texture, and illumination ground truth is collected with a physical probe.

  • Bounding geometry: The system models bounding geometry as a 3D cuboid around the camera and estimates its layout and camera pose from three vanishing points.Users receive tools to correct inaccurate estimates and fully specify the 3D box geometry when needed.
  • Additional geometry: Users can create extruded geometry such as tables and stairs by sketching a 2D boundary and specifying the object’s 3D height.Previously estimated vanishing points and bounding geometry support these image-space annotations.
  • Additional geometry: Occluding surfaces are created with interactive spectral matting so inserted objects can be hidden behind complex scene surfaces.Users define an object’s interior and exterior with scribbles, producing a segmentation matte that acts as a cardboard cutout.
  • Evaluation: Ground-truth illumination data are collected with a white diffuse-ball probe on a height-adjustable pole, allowing a rendered sphere to be aligned for error measurement.The apparatus uses knowledge of the physical scene to compare the rendering against the probe observation.
  • Evaluation: The ground-truth reflectance experiments use a dedicated chart shown in Figure 10.
  • Materials: Estimated albedo is projected along the camera-view vector onto scene geometry and rendered as a diffuse texture map.The same projection is applied to out-of-view geometry, including hidden surfaces.

5 Ground truth evaluations

Ground-truth evaluations show that the method produces comparatively accurate lighting and reflectance estimates from single images, while optimizing final perceptual fidelity rather than physical accuracy of intermediate estimates.

  • 5.1 Lighting evaluation: The lighting evaluation used 200 images from 20 indoor scenes with a white ball whose BRDF was known and verified against a Macbeth Color Checker.Synthetic spheres were rendered at the ground-truth spheres’ spatial locations using estimated scene lighting.
  • 5.1 Lighting evaluation: 0.12 ± 0.049 RMSE was achieved for rendered spheres with intensity ranges [0, 1], while RMSE adjusted was 0.085 ± 0.03.The method beat the uniform-sphere baseline on every example for absolute RMSE and beat the adjusted baseline on about 70% of renders.
  • 5.2 Intrinsic decomposition evaluation: Reflectance evaluation used 80 indoor-scene images containing a chart with known diffuse reflectances ranging from 3% to 89%.Errors were computed over monochromatic chart patches using MAE and RMSE.
  • 5.2 Intrinsic decomposition evaluation: The decomposition method produced lower average reflectance errors than Retinex: MAE .141 and RMSE .207 versus .205 and .272, respectively.The method outperformed Retinex in almost a large majority of dataset scenes using known-reflectance chart patches.
  • 5.3 Physical accuracy of intermediate results: Illumination error correlated weakly with light-position error (Pearson 0.034) and reflectance error (0.074), indicating limited correspondence with intermediate physical accuracy.The method optimized light positions and reflectance estimates for perceptually plausible rendered images, partly at the expense of physical accuracy.

6 User study

The user study compares synthetic-object insertion methods across controlled image pairs and scene variants. Participants generally found the proposed method highly realistic and preferred it over the light-probe method, although neither synthetic method was reliably distinguishable from real photographs.

  • Method comparison: Participants chose the proposed method over the light-probe method 67% of the time (202 of 300), significantly preferring it across all 10 scenes (p-value ≪0.001).The light-probe comparison used Debevec’s illumination method combined with the study’s coarse geometry and reflectance estimates.
  • Real-versus-synthetic comparison: Synthetic images were judged real 34% of the time for the proposed method, 27% for light probe, and 17% for the baseline.The proposed method differed significantly from the baseline, but not from the light-probe method (p = 0.106).
  • Study variants: All tested variants except “none” reduced subjects’ ability to identify the real photograph, but the changes were not statistically significant.The variants were monochrome, cropped, clutter, and spotlight presentations.
  • Participant performance: Participants became worse at identifying the real photograph as the study progressed, and self-rated ability decreased for 25 of 30 subjects.Average self-assessment fell from 3.9 before the study to 2.8 afterward.
  • Participant expertise: Graphics graduate students performed similarly to naïve participants, indicating that the task remained difficult for people familiar with computer graphics and synthetic renderings.The four non-naïve users chose the proposed method over light probe 68% of the time, close to the naïve-subject average of 67%.

7 Results and discussion

The system produces realistic insertions across varied scenes and material or lighting conditions, while user studies and quantitative evaluations support its effectiveness. Its main limitations arise when the image lacks sufficient information about extreme viewpoints, lighting, geometry, or complex materials.

  • Scene and material coverage: Lighting effects are generally compelling, including inserted emitters and automatic light interplay between inserted objects and the scene.Result quality remains dependent on the inserted models and materials.
  • Quantitative and perceptual evaluation: User-study results show that the method’s renderings are often confused with real images and compare favorably with other state-of-the-art insertion methods.The study also considered multiple inserted objects and glass objects, with results consistent across variants.
  • Usability: Users unfamiliar with the system can begin inserting objects within minutes, with one novice creating a result in under 10 minutes.The interface is described as intuitive and easy to learn.
  • Scene and material coverage: The method works on scenes without apparent box structure, including outdoor images.Examples include the complex-shadow and material demonstrations in Figures 19 and 20.
  • Quantitative and perceptual evaluation: The method beats natural baselines, while its intrinsic decomposition significantly improves over Retinex in a physical comparison.The authors note that qualitative evaluation remains especially important because suitable metrics are unclear.
  • Limitations and future work: Extreme camera viewpoints may cause failure because the image lacks enough information to estimate luminaires, camera pose, geometry, vanishing points, or scene borders.Closeups are identified as a representative case.
  • Limitations and future work: Intrinsic image extraction may fail for difficult diffuse scenes or nondiffuse surfaces, and purely diffuse modeling can miss reflections on specular materials.More accurate automatic estimation of complex surface materials is identified as future work.
  • Limitations and future work: Automating tone mapping and extending the method to legacy videos are proposed directions for future work.Video extensions could use multiple frames to infer geometry, surface properties, or light positions.

8 Conclusion

The system enables realistic object insertion into legacy images using only a few quick annotations, without scene access or previously required tools. Its results appear realistic, and people tend to favor them over other insertion methods.

  • Conclusion: A few quick annotations let novice users create professional-quality insertions without access to the scene or previously used tools.The conclusion characterizes the resulting images as realistic.
  • Conclusion: Glossy surfaces in the source image can reflect inserted objects, demonstrating interaction with complex occluding geometry and scene appearance.The figure pairs fast segmentation of occluding geometry with reflections beneath inserted objects.
Loading 1912.11565v1…