ComfyUI Node
Match Colors to Reference
A ComfyUI node in color with 4 inputs and 1 output.
Match Colors to Reference
- image_target
- image_ref
- matched_frames
◄strength1.00►
◄frame_window9►
Categorycolor
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image_target | IMAGE | — | |
| strength | FLOAT | 1.000–1 | Blend between original (0) and fully matched (1) colors. |
| frame_window | INT | 91–99 | Centered 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_refopt | IMAGE | Optional 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)
| Name | Type | Description |
|---|---|---|
| matched_frames | IMAGE | — |