Papers
Topics
Authors
Recent
Search
2000 character limit reached

Random Poisson Blending

Updated 8 July 2026
  • Random Poisson Blending is a technique that solves gradient-domain Poisson equations while incorporating stochastic variations in region selection, guidance composition, and sampling.
  • It bridges classical discretized formulations with modern INR-based methods to balance deterministic constraints with randomization for improved image blending.
  • Empirical evaluations show that INR-based random blending reduces artifacts and color discrepancies compared to traditional methods, though challenges remain with mask accuracy and extreme content mismatches.

Searching arXiv for the cited papers to ground the article in current paper metadata and context. Random Poisson Blending denotes a family of gradient-domain compositing procedures in which Poisson constraints are retained while stochasticity is introduced into the blending region, guidance construction, sampling process, or optimization schedule. In the classical formulation, blending reconstructs an unknown composite image inside a region Ω\Omega by matching a guidance field under Dirichlet boundary conditions. In more recent neural variants, the same variational principle is implemented either as a differentiable loss on pixel images or as a continuous optimization problem over Implicit Neural Representations (INRs). Within this literature, "Deep Image Blending" formalizes a deterministic differentiable Poisson blending loss coupled to deep style and content objectives, and explicitly does not define a randomized Poisson method (Zhang et al., 2019). By contrast, the Neural Poisson Solver framework presents a continuous INR-based solver and describes random Poisson blending as stochastic variation in region selection, guidance composition, and coordinate sampling while still solving Poisson-domain constraints (Wu et al., 2024).

1. Classical Poisson formulation and the role of randomness

Classical Poisson blending is posed on a blending region ΩR2\Omega \subset \mathbb{R}^2 with boundary Ω\partial \Omega, a target image tt, a source image ss, and an unknown composite image ff reconstructed inside Ω\Omega. The standard variational objective minimizes

E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^2

subject to the Dirichlet boundary condition

fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.

The associated Euler–Lagrange condition yields

Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.

On a regular pixel grid, discretization produces a sparse SPD linear system with the standard 4-neighbor discrete Laplacian on the left-hand side and the discrete divergence of the guidance field plus boundary injections on the right-hand side (Zhang et al., 2019).

This formulation is deterministic once the source, target, mask, and guidance field are fixed. Consequently, randomness is not intrinsic to classical Poisson image editing. The data describe "Random Poisson Blending" as an extension in which stochasticity is introduced while preserving the Poisson objective. In the INR-based account, this includes randomly sampling ΩR2\Omega \subset \mathbb{R}^20, randomly mixing source and target gradients in the guidance field, and using stochastic coordinate minibatches during optimization (Wu et al., 2024). This suggests that randomness operates at the level of problem instantiation or solver dynamics rather than altering the underlying variational principle.

2. Deterministic deep image blending and its Poisson loss

"Deep Image Blending" replaces the classical linear-system solve with a differentiable loss that emulates Poisson image blending and jointly optimizes it with deep style and content objectives (Zhang et al., 2019). The method constructs a blended image

ΩR2\Omega \subset \mathbb{R}^21

where ΩR2\Omega \subset \mathbb{R}^22 is the optimizable image, ΩR2\Omega \subset \mathbb{R}^23 is the target image, and ΩR2\Omega \subset \mathbb{R}^24 is a coarse binary mask aligned to ΩR2\Omega \subset \mathbb{R}^25.

Its Poisson gradient loss is

ΩR2\Omega \subset \mathbb{R}^26

where ΩR2\Omega \subset \mathbb{R}^27 denotes a Laplacian filter applied channel-wise. Because ΩR2\Omega \subset \mathbb{R}^28 equals ΩR2\Omega \subset \mathbb{R}^29 outside Ω\partial \Omega0, applying the Laplacian over the whole Ω\partial \Omega1 implicitly enforces the target boundary condition, while the interior term emulates gradient-domain matching (Zhang et al., 2019).

The method is explicitly non-random with respect to the Poisson formulation itself. The paper states that it does not define any randomized variant of Poisson blending and does not introduce randomness into the guidance field, boundary conditions, or the Poisson constraints. The only explicit randomness is the initialization of Ω\partial \Omega2 as 2D random noise at the start of stage one, which affects the optimization trajectory but is unrelated to the Poisson formulation itself (Zhang et al., 2019). This distinction is central to the concept of random Poisson blending: stochastic initialization alone is not equivalent to randomizing the Poisson problem.

3. Full deep objective, masks, and optimization dynamics

The deep formulation combines the Poisson gradient loss with VGG-16-based content, style, histogram, and total variation terms. Features Ω\partial \Omega3 and Gram matrices Ω\partial \Omega4 are computed from VGG-16 pretrained on ImageNet. The style loss uses layers conv1_2, conv2_2, conv3_3, and conv4_3, while the content loss uses conv2_2 (Zhang et al., 2019).

In stage one, the content loss is masked to preserve source semantics inside the object region,

Ω\partial \Omega5

and the style loss compares the blended image to the target style,

Ω\partial \Omega6

The histogram loss is

Ω\partial \Omega7

and the total variation loss is

Ω\partial \Omega8

The full stage-one objective is

Ω\partial \Omega9

Stage two refines the result using content-to-tt0 and style-to-tt1 losses, but omits the Poisson term (Zhang et al., 2019).

Optimization proceeds in two stages with L-BFGS over image pixels. Stage one initializes tt2 as 2D random noise, computes tt3, evaluates the losses, and updates tt4 to minimize tt5. Stage two initializes tt6 and optimizes tt7 using content, style, histogram, and TV losses. The reported setting is tt8 iterations in both stages, with runtime of approximately 5 minutes for tt9 on a single NVIDIA GTX 1080Ti (Zhang et al., 2019).

The mask and boundary treatment are integral to the method’s interpretation. Boundary consistency is ensured by constructing ss0 with the target outside ss1 and applying the Laplacian over the whole image. No explicit feathering or edge-aware filtering is used; smoothness is enforced by the gradient loss and TV, while interior style adaptation is driven by deep style and content features (Zhang et al., 2019). Coarse masks are acceptable, and the content loss helps retain object identity even with coarse delineation.

4. Continuous INR-based Poisson solving and boundary-condition-free blending

The Neural Poisson Solver reformulates Poisson blending in a continuous function space using INRs (Wu et al., 2024). An INR models a signal as

ss2

with ss3. The blended signal is parameterized as another INR ss4 and optimized to satisfy Poisson constraints continuously rather than on a fixed pixel grid.

The primary loss is the direct variational form,

ss5

combined with a global color-consistency term over the complement ss6,

ss7

so that

ss8

The framework also gives an optional PDE-residual form,

ss9

but emphasizes the boundary-condition-free design based on global ff0 (Wu et al., 2024).

This design is presented as a response to limitations of grid-based Poisson blending. The paper attributes distortions, artifacts, and color shifts to discretization and boundary handling in traditional methods, and argues that strict enforcement only on ff1 makes solutions sensitive to mask shape and placement (Wu et al., 2024). In the INR setting, ff2 and ff3 are obtained by automatic differentiation at arbitrary coordinates, which avoids finite-difference staircasing and extends naturally to higher-dimensional signals. A plausible implication is that random Poisson blending becomes easier to define in continuous space, because randomness can be injected into spatial sampling and region geometry without first redesigning a grid solver.

5. Randomization mechanisms in Poisson-domain blending

Within the provided material, random Poisson blending is described most explicitly in the Neural Poisson Solver framework (Wu et al., 2024). The stochastic components are all external to the Poisson constraints themselves and concern the choice of region, guidance, and sampling.

Component Randomized mechanism Source framing
Region ff4 Random masks, blob-like or irregular shapes, splines, random size, aspect, and placement; in 3D, random boxes or spheres Randomly sample ff5
Guidance field ff6 Random weights ff7, per-direction or per-channel mixtures, stronger-gradient selection Guidance composition
Optimization samples Random coordinate minibatches in ff8 and ff9; in NeRF, random camera poses Stochastic sampling

For 2D INR-based blending, the guidance field may be chosen as

Ω\Omega0

The paper evaluates three deterministic guidance constructions that can also serve as ingredients in randomized pipelines: feature blending, where Ω\Omega1 is taken from the stronger gradient at each point,

Ω\Omega2

feature overlay with Ω\Omega3, and feature smoothing with Ω\Omega4 (Wu et al., 2024).

The paper further states that random Poisson blending "simply introduces stochasticity in region selection, guidance composition, and sampling, while still solving the Poisson constraints" (Wu et al., 2024). In this sense, the adjective "random" does not denote a different PDE, but a randomized policy for instantiating and training the same Poisson-domain problem. This differs from the discussion in "Deep Image Blending," where randomized guidance, randomized boundary conditions, stochastic masking, or dropout in deep style features are presented only as speculative ways a random variant could be constructed and are explicitly not part of the published method (Zhang et al., 2019).

6. Two-dimensional and three-dimensional realizations

For 2D images in the INR formulation, the inputs are a target INR Ω\Omega5, a source INR Ω\Omega6, a blending region Ω\Omega7, and a balance parameter Ω\Omega8 (Wu et al., 2024). The blending INR may be initialized as Ω\Omega9 or as a trainable MLP initialized near E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^20. The reported 2D backbone is DINER, using hash indexing plus an MLP to capture higher-frequency detail. Optimization uses Adam with cosine annealing on a single NVIDIA RTX 3090 GPU, with blending time of approximately 50–100 seconds per blend (Wu et al., 2024).

The optimization loop samples coordinates in E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^21 for gradient-domain terms and coordinates in E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^22 for global color consistency. The reported total objective in the paper focuses on

E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^23

with E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^24 when the optional boundary and PDE residual terms are omitted (Wu et al., 2024). The parameter E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^25 controls gradient preservation versus edge smoothness: smaller E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^26 preserves detail inside E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^27 at the risk of edge color mismatch, while larger E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^28 improves edge transitions with slight detail smoothing.

For 3D scenes, the same idea is adapted to NeRFs with 5D input (Wu et al., 2024). The source, target, and blending models are denoted E(f)=Ωfv2E(f) = \iint_{\Omega} \|\nabla f - v\|^29, fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.0, and fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.1, and the blending region becomes a random 3D ROI fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.2. To save memory, optimization is restricted to points within fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.3, and density is set to zero outside fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.4 during training-time rendering:

fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.5

In practice, the paper blends density and color inside fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.6 via

fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.7

and

fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.8

with fΩ=tΩ.f|_{\partial \Omega} = t|_{\partial \Omega}.9 and Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.0 (Wu et al., 2024). Training uses random camera poses and Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.1 rays per pose on a single RTX 3090, takes several hours, and produces final renders at Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.2 due to memory and time limits.

7. Empirical behavior, comparisons, and limitations

The 2019 deep image method evaluates against copy-and-paste, Poisson Blending, Poisson Blending + Style Transfer, Style Transfer + Poisson Blending, Deep Image Harmonization, and GP-GAN (Zhang et al., 2019). The reported qualitative findings are consistent across the provided summary: copy-and-paste produces obvious boundary artifacts; Poisson Blending smooths boundaries but exhibits inconsistent style and texture together with color seep; Poisson Blending + Style Transfer yields more style consistency but unpleasant illumination and color during the Poisson step; Style Transfer + Poisson Blending sacrifices source content and structure; Deep Image Harmonization improves illumination but fails to hide the boundary and needs precise foreground; GP-GAN is supervised and shows poor generalization on the reported test cases (Zhang et al., 2019). In a user study with 30 participants and 20 tasks, the method is preferred in 9/10 real-world tasks and 8/10 painting tasks, corresponding to 80–90% preference in those cases (Zhang et al., 2019).

The Neural Poisson Solver reports average pixel-wise errors for gradient-domain fidelity and color smoothness, measured as Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.3 over pixels, and states that across multiple scenes it reduces Poisson-PDE-related errors by Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.4 to Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.5 compared to discrete PIE (Wu et al., 2024). Qualitatively, the classical discrete method is reported to suffer from color shifts and residual artifacts, whereas the continuous solver preserves global colors and blends details seamlessly. In 3D NeRF blending, the demonstrations include heterogeneous blending such as text in ice or water and large-scale blending such as a chessboard encased in ice, with the Neural Poisson Solver producing coherent blends from multiple viewpoints relative to direct ROI replacement (Wu et al., 2024).

The limitations are also distinct. For deep image blending, the paper does not enumerate failure modes explicitly; the provided summary states that heavy texture or style mismatch and extreme lighting inconsistency may require careful tuning of Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.6, Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.7, and Δf=divvin Ω,fΩ=tΩ.\Delta f = \operatorname{div} v \quad \text{in } \Omega, \qquad f|_{\partial \Omega} = t|_{\partial \Omega}.8, and runtime can be several minutes per image depending on L-BFGS convergence (Zhang et al., 2019). For the Neural Poisson Solver, sharp-edged masks may reveal the mask through unnatural transitions, 5D blending requires three NeRF models of identical size and joint ray tracing, GPU memory use is high, training is slow, render resolution is limited by memory and time, and extreme color or semantic mismatch remains challenging (Wu et al., 2024).

A recurrent misconception is that any Poisson-based compositor with random initialization is therefore a random Poisson method. The literature summarized here does not support that equivalence. The differentiable method in "Deep Image Blending" is deterministic in its Poisson loss and uses randomness only for initialization (Zhang et al., 2019). By contrast, the INR-based account defines random Poisson blending through stochastic region selection, guidance mixing, and sampling while maintaining the original Poisson-domain objective (Wu et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Random Poisson Blending.