Manuscript Offprint

arXiv:2609.03740

Fill My Mirror: Geometry-Constrained Mirror Inpainting

Ofek Basson, Shimon Vainer, Yacov Hel-Or, Ohad Fried

Ofek Basson Shimon Vainer Yacov Hel-Or Ohad Fried Reichman University

Figure

Figure 1. Mirror inpainting comparison. Generative baselines (FLUX.1 Fill, Qwen-Image-Edit) fill reflections that are geometrically inconsistent with the surrounding scene. MirrorFusion 2.0 did not perform inpainting on this example, leaving the mirror region unchanged. Our geometry-constrained generative approach (right image) aligns reflected structures with the visible scene while preserving realism. The mirror region is outlined in green.

Abstract

Mirrors are common in real-world images, yet producing geometrically consistent reflections with generative models remains challenging. Unlike most objects, mirror appearance depends on scene geometry and viewpoint, making it hard to synthesize using learned appearance priors alone. We address this in the mirror inpainting setting, where the scene is fixed and only the mirror region is generated.

Our key insight is that much mirror content is geometrically constrained by the visible scene and need not be hallucinated. We estimate scene geometry and project visible content into the mirror to recover reflection regions determined by geometry. A generative model then completes the mirror region via a two-mask diffusion strategy balancing geometric constraints with the model's learned priors, reducing projection artifacts and improving reflection consistency. The method is training-free and applicable to complex real-world scenes.

We evaluate on MirrorBench-V2 (synthetic) and real images. Using standard and geometry-aware metrics, we show that explicitly using scene geometry improves consistency.

1. Introduction

Mirrors frequently appear in images generated by modern models, yet generating physically consistent reflections remains an unsolved challenge. Filling a mirror region in an image requires understanding the scene geometry and reasoning about parts of the scene that are not directly visible. We therefore focus on the task of mirror inpainting: given an image and a mirror mask, our goal is to generate reflection content that is geometrically consistent with the visible scene. Notably, this task differs from generating an image containing a mirror from scratch: when generating freely, a model can implicitly satisfy its learned priors by constructing a scene with simple or undemanding reflection geometry, whereas our inpainting setting fixes the scene and requires the reflection to be derived from actual geometry — leaving no freedom to choose an easy arrangement.

As illustrated in figure 1, existing inpainting methods typically generate visually pleasing mirror content, but they fail to produce geometrically consistent reflections. One reason for this failure is that existing inpainting methods primarily rely on the learned priors of the model to hallucinate missing content in mirror regions. The fact that mirror appearance is not intrinsic to the surface, but is fully determined by the scene and viewing geometry, makes mirror behavior difficult to learn from image statistics alone: even

This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.

Figure

Figure 2. Effect of small viewpoint changes on mirror appearance. Columns show viewpoint changes for a non-reflective brick wall (top row) and a mirror (bottom row). A 5° change in orientation, which is nearly imperceptible to observers, causes a significant change in the mirror appearance, while the non-reflective textured surface changes only slightly. This highlights the strong geometric dependence of mirror appearance and emphasizes its fundamental difference from non-reflective objects.

small viewpoint changes can substantially alter the reflected content (figure 2).

Recent works such as Reflecting Reality [5] and MirrorVerse [4] address this challenge by conditioning generation on depth information. While these approaches include some real images, they are predominantly trained on synthetic data, which affects their generalization to real-world scenes and diverse geometries. Moreover, depth is used only as an auxiliary input signal to guide hallucination, rather than as an explicit geometric anchor: to our knowledge, no prior mirror-generation method projects scene geometry into the mirror and uses that projection to directly constrain, rather than merely condition, the generated content.

Our key insight is that mirror reflections are largely determined by scene geometry and therefore do not need to be fully hallucinated. A significant portion of the mirror content can be recovered deterministically by projecting visible scene geometry into the mirror using estimated geometry. However, projection errors introduce artifacts that propagate into the final result, making purely projection-based completion insufficient. To address this, we adopt a two-mask diffusion formulation in which one mask governs inpainting of regions not constrained by geometry, while a second mask preserves and refines the projected reflection using the model's learned priors. This lets a single pre-trained diffusion model preserve, refine, or synthesize each region according to its geometric evidence, rather than hallucinating the whole mirror. The resulting method is training-free and improves with geometry quality.

We evaluate our method on MirrorBench-V2 [4], a public benchmark providing ground-truth geometry, both with and without access to ground-truth geometry during inference, as well as on real images without ground-truth geom-

etry. We compare our approach against strong baseline approaches using standard image-level metrics together with a newly introduced geometry-based reflection consistency evaluation. Our results show that explicitly incorporating scene geometry leads to better mirror reflections.

Our main contributions are:

Geometry-constrained mirror inpainting. We introduce a training-free mirror inpainting method that explicitly decomposes the problem into (1) deterministic geometric scene projection and (2) generative completion of the remaining regions. To our knowledge, this is the first mirror-generation method to condition on explicit projected geometry rather than using depth only as an auxiliary signal. This formulation enforces physical reflection constraints while minimizing reliance on hallucination.

Robust diffusion via two-mask decomposition. We propose a diffusion-time noise interpolation strategy that leverages two complementary masks to balance geometric constraints with the model's learned priors, mitigating artifacts caused by depth errors, occlusion ambiguities, and imperfect projections without retraining or modifying the underlying diffusion model.

Geometry-aware evaluation without ground-truth geometry. We introduce a metric for evaluating the quality of mirror reflection in real images without ground-truth geometry, focusing mainly on mirror regions that are determined by the visible scene.

References (25)

  • Rs-specsdf: Reflection-supervised surface reconstruction and material estimation for specular indoor scenes
  • Mirrorverse: Pushing diffusion models to realistically reflect the world
  • Reflecting reality: Enabling diffusion models to produce faithful mirror reflections
  • Catadioptric stereo using planar mirrors
  • Designing a lightweight edge-guided convolutional neural network for segmenting mirrors and reflective surfaces
  • Grounding image matching in 3d with mast3r
  • Depth Anything 3: Recovering the Visual Space from Any Views
  • Progressive mirror detection
  • Reflecting 3d gaussians for reconstructing mirror reflections
  • Editable physically-based reflections in raytraced gaussian radiance fields
  • Camera pose estimation using images of planar mirror reflections
  • How to compute the pose of an object without a direct view? In Asian Conference on Computer Vision (ACCV), pages 21–31
  • Nerfs are mirror detectors: Using structural similarity for multi-view mirror scene reconstruction with 3d surface primitives
  • Moge: Unlocking accurate monocular geometry estimation for open-domain images with optimal training supervision
  • Moge-2: Accurate monocular geometry with metric scale and sharp details, 2025
  • Gaussian splatting in mirrors: Reflection-aware rendering via virtual camera optimization
  • Qwen-image technical report, 2025
  • Reflect3r: Single-View 3D Stereo Reconstruction Aided by Mirror Reflections
  • Depth anything: Unleashing the power of large-scale unlabeled data
  • Depth anything v2 (opens arXiv in a new tab)
  • Where is my mirror? In Proc
  • Refracting reality: Generating images with realistic transparent objects (opens arXiv in a new tab)
  • Self-calibration of catadioptric camera with two planar mirrors from silhouettes
  • Adding conditional control to text-to-image diffusion models
  • Refgaussian: Dis-entangling reflections from 3d gaussian splatting for realistic rendering (opens arXiv in a new tab)