Color Match
ColorMatchcolor-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
{
"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
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
image_ref | IMAGE | required | - | - |
image_target | IMAGE | required | - | - |
method | ENUM6 options
| required | - | "mkl" |
strength | FLOAT | optional | min: 0, max: 10, step: 0.01 | 1 |
multithread | BOOLEAN | optional | - | true |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | image | IMAGE | No | ["{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]