Skip to main content

Color Match

KJNodes/image
ColorMatch

color-matcher enables color transfer across images which comes in handy for automatic color-grading of photographs, paintings and film sequences as well as light-field and stopmotion corrections. The methods behind the mappings are based on the approach from Reinhard et al., the Monge-Kantorovich Linearization (MKL) as proposed by Pitie et al. and our analytical solution to a Multi-Variate Gaussian Distribution (MVGD) transfer in conjunction with classical histogram matching. As shown below our HM-MVGD-HM compound outperforms existing methods. https://github.com/hahnec/color-matcher/

Example

JSON Example
{
  "class_type": "ColorMatch",
  "inputs": {
    "image_ref": [
      "node_id",
      0
    ],
    "image_target": [
      "node_id",
      0
    ],
    "method": "mkl"
  }
}

This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.

Inputs

NameTypeStatusConstraintsDefault
image_refIMAGErequired--
image_targetIMAGErequired--
methodENUM
6 options
  • mkl
  • hm
  • reinhard
  • mvgd
  • hm-mvgd-hm
  • hm-mkl-hm
required-"mkl"
strengthFLOAToptionalmin: 0, max: 10, step: 0.011
multithreadBOOLEANoptional-true

Outputs

IndexNameTypeIs ListConnection Reference
0imageIMAGENo["{node_id}", 0]
How to connect to these outputs

To connect another node's input to an output from this node, use the connection reference format:

["node_id", output_index]

Where node_id is the ID of this ColorMatch node in your workflow, and output_index is the index from the table above.

Example

If this node has ID "5" in your workflow:

  • image (IMAGE): ["5", 0]
Was this page helpful?