Nodes/Mickmumpitz-Nodes/Compose + Match (per-frame)
ComfyUI Node

Compose + Match (per-frame)

Composite source over destination via a mask, with a per-frame correction so the inserted region matches the plate. 'Grade match (surround)' estimates the VAE/grading drift from the unchanged area outside the mask (where source & destination share content) and applies it to the source inside the mask -- fixes seam luminance/contrast without changing the element's colors. 'Color match (palette)' is the distribution-based color-matcher approach. 'temporal_anchor' (iterative video) re-matches each iteration's element to the previous iteration's corrected tail so VAE drift can't compound.

By mickmumpitz·Created 7 months ago·Updated 22 days ago· 32
Compose + Match (per-frame)
  • destination
  • source
  • mask
  • previous_frames
  • image
correctionGrade match (surround)
strength1.00
saturation1.00
black_point0.000
edge_falloff0
grade_fitGain + offset
surround_band0
colormatch_referenceDestination
methodmkl
reference_regionOutside mask
multithreadtrue
temporal_anchorfalse
anchor_strength1.00
anchor_frames0
CategoryMickmumpitz/Image

Inputs (18)

NameTypeDefaultDescription
destinationIMAGE
sourceIMAGE
maskMASK
correctionCOMBOGrade match (surround)3 options: Grade match (surround), Color match (palette), Off
strengthFLOAT1.000–2
saturationFLOAT1.000–3
black_pointFLOAT0.0000–0.2
edge_falloffINT00–512
grade_fitCOMBOGain + offset2 options: Gain + offset, Offset only
surround_bandINT00–1024
colormatch_referenceCOMBODestination2 options: Source, Destination
methodCOMBOmkl6 options: mkl, hm, reinhard, mvgd, hm-mvgd-hm, hm-mkl-hm
reference_regionCOMBOOutside mask3 options: Outside mask, Full frame, Inside mask
multithreadBOOLEANtrue
temporal_anchorBOOLEANfalse
anchor_strengthFLOAT1.000–2
anchor_framesINT00–99
previous_framesoptIMAGE

Outputs (1)

NameTypeDescription
imageIMAGE