Background Line Scaffolds for Disocclusion Filling

When a camera moves, surfaces that were hidden behind foreground objects come into view. These are called disocclusions, and the original image contains no pixels for them. Current systems fill these holes with an image inpainter, a network that invents plausible pixels for a masked region. The inpainter works on one target view at a time and treats the hole as a generic 2D gap. The result is a familiar failure: a door frame, shelf edge, or window mullion that should continue behind a person bends, fades, or lands in a slightly different place in each rendered view.

This proposal treats the hidden background as a 3D object rather than a hole. A background line that disappears behind a foreground object is a single straight 3D line that the occluder happens to cut, so its hidden part can be recovered once, in 3D, and then projected into every new view. Concretely, we first complete the background wireframe (the set of straight structural line segments) behind the foreground in the reference image. We then lift each completed line into 3D using the depth of its visible fragments, and use the reprojected lines, together with the background depth they imply, to guide pixel filling in each target view. Two things make this disocclusion-specific. First, depth discontinuities tell us which line endpoints are genuinely cut off by an occluder and which are real ends. Second, two fragments can be accepted as one line only if they agree in 3D, a test that 2D collinearity grouping cannot apply.

Core Claim

The main claim is that structural guidance for disocclusion filling should be computed once in 3D on the occluded background layer, and not re-predicted per target view in 2D. If this is right, the method should beat two kinds of pipeline on line placement inside disoccluded regions and on consistency across views. The first is pipelines with no line guidance. The second is pipelines that use 2D edge or line guidance predicted per view, which includes the strongest version a skeptic would build. It should also produce better background depth inside the hole than smooth interpolation.

Prior work supplies most of the parts and also defines the gap. EdgeConnect fills a hole by first hallucinating Canny edges inside it and then filling color conditioned on those edges. SinMPI reuses that design, fine-tuned per scene, to fill disocclusions in single-image view synthesis. Both work in 2D, one view at a time, and neither enforces line geometry, so a monocular depth error at a boundary propagates straight into the structure. Hole-robust Wireframe Detection predicts wireframe lines behind foreground-object silhouettes. That is exactly the shape of a disocclusion mask, which makes it our proposal generator. It stops at 2D vectors, however, and discards its pixel generator at test time. Novel Single View Constraints for Manhattan 3D Line Reconstruction shows that physical-realizability constraints on a line graph improve 3D lifting from 80.58% to 83.21%. This motivates using 3D consistency as a filter, but its exact integer program is slow (about 18 s per image) and assumes Manhattan structure, so we use a lighter robust fit. A divide-and-conquer hole-filling method fills hole depth by linear interpolation from foreground to background. Our line-anchored depth replaces that interpolation.

Research Program

The pipeline has four stages, applied to a single image with monocular depth or to a sparse-view 3D reconstruction.

In the first stage, we find the occluding contours (depth discontinuities) and define the "behind" region. This region is the background-side band that will become disoccluded under the planned camera motion, together with the foreground silhouette itself. We run the hole-robust wireframe detector with this region as its hole mask. Because its training masks were object silhouettes from Places365, this matches its training conditions rather than stretching them.

In the second stage, we classify line endpoints and pair them. A visible segment that ends on the background side of an occluding contour, forming a T-junction whose top is the occluder's edge, is marked as a "cut" endpoint. Segments that end elsewhere are real ends. Cut endpoints are candidates for continuation. Candidate pairs come from the detector's completed lines and from a terminus-pairing step in the spirit of Intersection to Overpass, which links endpoints by proximity and direction. Each pair is then tested in 3D. We back-project the visible pixels of both fragments using background depth and fit one 3D line robustly. We accept the pair only if both fragments lie on that line within a depth-scaled tolerance. This 3D test is the point at which the approach departs from 2D collinear grouping such as On Straight Line Segment Detection: two parallel background edges at different depths can look collinear in 2D but fail the 3D fit.

In the third stage, we build the background layer. Accepted 3D lines supply depth along their hidden spans. Between lines, we fill depth with piecewise-planar interpolation bounded by the lines, in place of smooth foreground-to-background ramps. The result is a background depth and line layer that exists independently of any target view.

In the fourth stage, we fill each target view under guidance. The 3D lines and background depth are projected into each target view inside the disocclusion mask and passed as conditioning to a pixel filler. We test two fillers so that the contribution is not tied to one generator. The first is an EdgeConnect-style color network, as in SinMPI, with the projected line map replacing its hallucinated edges. The second is a pretrained diffusion inpainter with line conditioning. For sparse-view 3D Gaussian Splatting, the projected scaffold is added to the early-step structural guidance of FreeFix inside its low-confidence mask. FreeFix reports failures on exactly the extreme-disocclusion cases where the 3D model gives no credible guidance.

The analysis side asks when the scaffold helps. We will bin results by disocclusion width, by the number of cut lines crossing the hole, and by monocular depth error at the occluding contour.

Baselines

The naive reference is forward warping with no structural reasoning. The disocclusion mask is filled by Telea inpainting after the divide-and-conquer depth treatment of A divide-and-conquer hole-filling method. On Middlebury-style sequences, that paper reports only a relative figure, a 2.55 dB gain over Xu's method on Flowerpots, so we will rerun it ourselves rather than quote an absolute number. It is the point any learned method must clear. It also isolates our depth contribution when we swap its linear interpolation for our line-anchored depth while keeping Telea filling fixed.

The strongest existing single-image system is SinMPI. It reports SSIM 0.87 on NeRF Synthetic Lego, against 0.82 for both SinNeRF and AdaMPI. We run it with the same monocular depth estimate (DPT), the same target trajectories, and its per-scene fine-tuning schedule. Our variant replaces only its edge hallucination with the projected scaffold, with the same fine-tuning budget. Beating it means higher masked PSNR and SSIM and lower masked LPIPS. It also means higher line-placement accuracy inside the mask (defined below) and lower cross-view inconsistency, with the overall Lego SSIM at least matching 0.87. For sparse-view 3D Gaussian Splatting, the strongest baseline is FreeFix on LLFF and Mip-NeRF 360. No reported numerical result was found on Lacuna for FreeFix, so we rerun it with identical diffusion model, step counts, and iteration budget, adding only scaffold guidance.

The ablation that carries the paper is the one the skeptic would build. We run the same hole-robust wireframe detector on each warped target view, with that view's disocclusion mask as its hole, so it completes lines in 2D per view. Its output feeds the same fillers. This keeps detector, filler, and compute identical and removes only the shared 3D background layer and its 3D pairing test. Two further ablations remove the 3D pairing test, accepting all 2D-collinear pairs, and remove the cut/real endpoint classification. The detector's own reference point on occluded line completion is sAP10 of 51.82 on the Wireframe test set with 10–30% occlusion, against 38.54 for HT-HAWP, as reported by Hole-robust Wireframe Detection. Our pairing filter should not lower this figure when scored on the same protocol, and should raise precision.

Why not just…?

Why not just use a pretrained diffusion inpainter with no line guidance? Large image priors do know what rooms look like. However, FreeFix reports that its fine-tuning-free diffusion refinement fails when extrapolated views expose large holes with little initial guidance. EdgeConnect's structure-first split cut FID on Places2 at 40–50% masks to 14.98, against 35.78 for Contextual Attention and 54.30 for GLCIC. Unguided diffusion inpainting is included as a filler variant. If it matches the scaffold-guided version on line placement inside wide holes, the claim fails.

Why not just condition the inpainter on 2D lines detected or completed in each target view? This is the real threat, and it is the main ablation above. Per-view 2D completion can place a line plausibly within any single view. Our bet is that its errors are uncorrelated across views and ignore depth, so a hidden edge will wobble as the camera moves, and lines lying on slanted surfaces will be placed wrongly. If per-view 2D completion matches us on cross-view consistency and line placement, the 3D layer is unnecessary, and we will report that.

Why not just fix depth at the boundary and let the renderer stretch background? Smoothing depth across discontinuities produces rubber-sheet stretching, which the divide-and-conquer paper documents. That paper's own fix still relies on linear interpolation and Telea inpainting suited to small holes. SinMPI also reports bleeding on slanted surfaces. The depth-only ablation, in which line-anchored depth is used with no line conditioning on the filler, measures how much of any gain comes from depth alone.

Proposed Experiments

The primary evaluation uses held-out views from LLFF and Mip-NeRF 360, so ground truth exists. We render each held-out view from one reference image (single-image setting) or from a sparse subset (3D Gaussian Splatting setting), and compute the true disocclusion mask from reference depth. Scores are computed inside that mask. Pixel quality is measured by masked PSNR, SSIM, and LPIPS. Line placement is measured by running the same wireframe detector on the ground-truth view and on the output, restricted to the mask, and computing a structural-AP-style score at 10 pixels, mirroring sAP10. Cross-view consistency is measured by warping adjacent generated views with ground-truth depth and taking the masked photometric error. Middlebury sequences (Flowerpots, Venus) give a DIBR-style check with ground-truth background. NeRF Synthetic Lego connects to SinMPI's reported SSIM. The occluded Wireframe and YorkUrban test sets check that the 3D pairing step does not hurt line completion where 3D is unavailable, using monocular depth only.

The decisive checks are three. First, on scenes binned by hole width, scaffold guidance should beat the per-view 2D line ablation by a margin that grows with hole width and with the number of cut lines; a flat or negative gap refutes the core claim. Second, the cross-view consistency gap should be larger than the single-view quality gap, since sharing structure across views is what the method is designed for. Third, when injected monocular depth error at occluding contours increases, the 3D pairing test should reject wrong pairs rather than accept them. We will measure pairing precision against pairs read off ground-truth multi-view depth; if precision collapses under realistic depth error, the method needs sparse-view depth and that limit will be stated.