Nodes/ComfyUI_MiraSubPack/Tiled Image Color Correction
ComfyUI Node

Tiled Image Color Correction

Correct color/luminance shift in tiled images using pre-ksampler reference tiles. Supports combining color and luminance corrections.

By mirabarukaso·Created 8 months ago·Updated 2 months ago· 0
Tiled Image Color Correction
  • tiled_images
  • reference_tiles
  • corrected_tiles
color_correction_methodhistogram_match
color_correction_strength1.00
luminance_correction_strength0.00
edge_preserving_smooth0.0
CategoryMira/SubPack/Image Tiled Upscaler

Inputs (6)

NameTypeDefaultDescription
tiled_imagesIMAGESampled tiled images to be corrected (post-ksampler).
reference_tilesIMAGEOriginal tiles before ksampler (e.g. tiled_images output from ImageCropTiles). Must have the same tile count as tiled_images.
color_correction_methodCOMBOhistogram_matchColor correction method applied to each tile: none: Skip color correction. Histogram Match: Full per-channel distribution matching. Color Transfer: Mean & std matching in CIE LAB space (Reinhard 2001).
color_correction_strengthFLOAT1.000–1Blend strength for color correction: 0=no correction, 1=full correction.
luminance_correction_strengthFLOAT0.000–1Blend strength for luminance (brightness+contrast) correction applied AFTER color correction. 0=skip, 1=full luminance match. Can be combined with any color_correction_method.
edge_preserving_smoothFLOAT0.00–1Optional edge-preserving smoothing to reduce color artifacts/stains. 0=no smoothing, 0.3-0.5=recommended for artifact reduction, 1.0=maximum smoothing. Applied as final post-processing step.

Outputs (1)

NameTypeDescription
corrected_tilesIMAGE