ColorMatch
Function
This allows you to apply a color correction to an image by taking an old set
of colors (source color) and matching them up to a new set (destination color).
You can match the low, middle, and high end of the image. You can also do Contrast,
Gamma, and Add color corrections with Gamma being an inverse
gamma to preserve your highlights.
When matching color and using the Color Pickers, be aware of where you are scrubbing from. If you color correct an image and then feed it into the comp, you might have to jump down to view the color-corrected image to get proper source color; otherwise you will be pulling in modified color. This occurs after you have already fed in the destination color, since they are linked to the source color. Therefore, a good workflow is to select all three source colors, and then select the destination colors. Another technique I use when scrubbing is to ignore the node while scrubbing (select the node and hit I in the Node View), and then turn it on when finished.
Parameters
|
Type
|
Defaults
|
Function
|
r, g, bLowS |
float
|
0, 0, 0 | The low end of the rgb of the source color |
r, g, bLowD |
float
|
r, g, bLowS | The low end of the rgb destination color |
r, g, bMidS |
float
|
.5, .5, .5 | The middle of the rgb of the source color |
r, g, bMidD |
float
|
r, g, bMidS | The middle of the rgb destination color |
r, g, bHighS | float | 1, 1, 1 | The high end of the rgb of the source color |
r, g, bHighD | float | r, g, bHighS | The high end of the rgb destination color |
r, g, bContrast | float | 1, 1, 1 | Constrast values for the three channels |
r, g, bGamma | float | 1, 1, 1 | The Gamma values. Note this is an inverse gamma function, so you will retain your highlights as you raise the gamma. |
r, g, bAdd | float | 0, 0, 0 | Adds color. Blacks will be modified when this is raised. |
min, max | float | 0, 1 | Sets the clipping for the function. |
Synopsis
image ColorMatch( image In, float rLowS, float gLowS, float bLowS, float rLowD, float gLowD, float bLowD, float rMidS, float gMidS, float bMidS, float rMidD, float gMidD, float bMidD, float rHighS, float gHighS, float bHighS, float rHighD, float gHighD, float bHighD, float rContrast, float gContrast, float bConstrast, float rGamma, float gGamma, float bGamma, float rAdd, float gAdd, float bAdd, float min, float max );
Script
image ColorMatch( In, rLowS, gLowS, bLowS, rLowD, gLowD, bLowD, rMidS, gMidS, bMidS, rMidD, gMidD, bMidD, rHighS, gHighS, bHighS, rHighD, gHighD, bHighD, rContrast, gContrast, bConstrast, rGamma, gGamma, bGamma, rAdd, gAdd, bAdd, min, max );
See Also
AdjustHSV, Lookup,
ColorReplace