The Colorspace node converts images from one colorspace to another, for example from Nuke’s native colorspace to other color spaces more appropriate to a given process or intended display device. This node supports RGB, HSV, YUV, CIE, and CMS formats (and various subformats). It can adjust for different primaries, white point, and different encodings.
If you wish to reverse your colorspace conversion later in the script:
1. | Copy the Colorspace node and insert it at the appropriate point in your script. |
2. | Set the out controls to sRGB, D55, and RGB. |
3. | Set the in controls to match the values you entered in the first Colorspace node. |
If you wish to write out the input clip in the new colorspace, set the colorspace dropdown menu to linear in the Write node controls. This halts the automatic conversion and lets the one you created have priority.
Connection Type |
Connection Name |
Function |
Input |
unnamed |
The image sequence to receive the colorspace conversion. |
mask |
An optional image to use as a mask. By default, the colorspace conversion is limited to the non-black areas of the mask. At first, the mask input appears as triangle on the right side of the node, but when you drag it, it turns into an arrow labeled mask. If you cannot see the mask input, ensure that the mask control is disabled or set to none. |
Control (UI) |
Knob (Scripting) |
Default Value |
Function |
Colorspace Tab |
|||
channels |
channels |
rgb |
The colorspace correction is applied only to these channels. You can use the checkboxes on the right to select individual channels |
in |
colorspace_in |
linear |
Sets the input colorspace. This node converts the input image from this colorspace to the out colorspace. |
illuninant_in |
D65 |
Sets the input illuminant to simulate colors under different lighting. For example, the default D65 simulates illumination roughly equivalent to mid-day sun in Western or Northern Europe. |
|
primary_in |
sRGB |
Sets the input primaries (the exact "shade" of red, green, and blue). |
|
out |
colorspace_out |
linear |
Sets the required output colorspace. This node converts the input image from the in colorspace to this colorspace. |
illuninant_out |
D65 |
Sets the output illuminant to simulate colors under different lighting. For example, A simulates illumination from a household tungsten filament light bulb. |
|
primary_out |
sRGB |
Sets the input primaries (the exact "shade" of red, green, and blue). |
|
Bradford matrix |
bradford_matrix |
disabled |
If the illuminant_in and illuminant_out values are not the same, you can enable this to apply an illuminant adaptation transform. This alters colors so they appear the same. When disabled, the input and output colors have the same CIE colorspace XYZ values. |
color matrix output |
colormatrix |
N/A |
If a matrix is used in the color transform chosen above, the output appears here. Changing the matrix values has no effect, but you can copy them into a ColorMatrix node to apply them to an image. Ctrl/Cmd + drag the Animation menu to copy the whole matrix at once. See ColorMatrix for more information. NOTE: A colorspace conversion may be doing far more than just a single 3x3 matrix operation! |
mask |
N/A |
disabled |
Enables the associated mask channel to the right. Disabling this checkbox is the same as setting the channel to none. |
maskChannelInput |
none |
The channel to use as a mask. By default, the colorspace conversion is limited to the non-black areas of this channel. |
|
inject |
inject |
disabled |
Copies the mask input to the predefined mask.a channel. Injecting the mask allows you to use the same mask further downstream. |
invert |
invert_mask |
disabled |
Inverts the use of the mask channel so that the colorspace conversion is limited to the non-white areas of the mask. |
fringe |
fringe |
disabled |
Blurs the edges of the mask. |
(un)premult by |
N/A |
disabled |
Enables the associated channel to the right. Disabling this checkbox is the same as setting the channel to none. |
unpremult |
none |
The image is divided by this channel before being processed, and multiplied again afterwards. If you are using premultiplied input images, you may want to check (un)premult by and select rgba.alpha here. This will simulate doing the color conversion before the premultiplication was done. It is the same as adding an Unpremult node before this node and a Premult node after, but allows you to work faster if you’re only using one color correct node. If you are using unpremultiplied input images, you should leave this set to none. |
|
invert |
invert_unpremult |
disabled |
Inverts the use of the (un)premultiply channel. |
mix |
mix |
1 |
Dissolves between the original image at 0 and the full colorspace conversion at 1. |