Nodes/Link Comfy Nodes/Match Colors to Reference
ComfyUI Node

Match Colors to Reference

A ComfyUI node in color with 4 inputs and 1 output.

By Mister-Link·Created 9 months ago·Updated 6 days ago· 0
Match Colors to Reference
  • image_target
  • image_ref
  • matched_frames
strength1.00
frame_window9
Categorycolor

Inputs (4)

NameTypeDefaultDescription
image_targetIMAGE
strengthFLOAT1.000–1Blend between original (0) and fully matched (1) colors.
frame_windowINT91–99Centered window of frames whose pooled Lab statistics inform each frame's mapping (9 = itself + 4 behind + 4 ahead; wraps around the batch, so loops stay seamless). With image_ref connected it steadies the per-frame mapping (1 = per-frame, no pooling); without image_ref the pooled stats ARE the reference (1 = no-op). For self-referential drift removal, use a window longer than the drift.
image_refoptIMAGEOptional absolute reference. Batch of 1 applies to all targets; otherwise must match target batch size. When unconnected, frames are matched toward their own frame_window consensus instead.

Outputs (1)

NameTypeDescription
matched_framesIMAGE