色彩空间

“色彩空间”节点将图像从一种色彩空间转换为另一种色彩空间,例如从Nuke的本色空间到更适合给定过程或预期显示设备的其他颜色空间。该节点支持RGB,HSV,YUV,CIE和CMS格式(以及各种子格式)。它可以针对不同的原色,白点和不同的编码进行调整。

如果您希望稍后在脚本中反转色彩空间转换,请执行以下操作:

1.   复制Colorspace节点并将其插入脚本中的适当位置。
2.   设置out控制sRGBD55RGB
3.   设置in控件以匹配您在第一个Colorspace节点中输入的值。

如果您想在新色彩空间中写出输入剪辑,请设置colorspace下拉菜单linear在“写入”节点控件中。这将停止自动转换,并让您创建的转换具有优先权。

输入和控制

连接类型

连接名称

功能

输入值

未命名

图像序列接收色彩空间转换。

面具

用作遮罩的可选图像。默认情况下,颜色空间转换仅限于蒙版的非黑色区域。

首先,遮罩输入在节点的右侧显示为三角形,但是当您拖动它时,它将变成标记为遮罩的箭头。如果看不到遮罩输入,请确保mask控件被禁用或设置为none

Control (UI)

Knob (Scripting)

Default Value

功能

Colorspace Tab

channels

channels

rgb

色彩空间校正仅应用于这些通道。

您可以使用右侧的复选框选择单个频道

in

colorspace_in

linear

设置输入色彩空间。该节点将输入图像从该色彩空间转换为out色彩空间。

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

设置所需的输出色彩空间。该节点将输入图像从in色彩空间到此色彩空间。

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

如果illuminant_inilluminant_out值不相同,您可以启用它以应用光源适应变换。这会改变颜色,因此它们出现相同。

禁用时,输入和输出颜色具有相同的CIE颜色空间XYZ值。

color matrix output

colormatrix

N/A

如果在上面选择的颜色转换中使用了矩阵,则输出将显示在此处。

更改矩阵值无效,但是您可以将其复制到ColorMatrix节点中以将其应用于图像。Ctrl/Cmd +拖动动画菜单可一次复制整个矩阵。看到色彩矩阵了解更多信息。

注意:  色彩空间转换的功能远不止一个3x3矩阵操作!

mask

N/A

disabled

在右侧启用关联的遮罩通道。禁用此复选框与将频道设置为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

复制mask输入到预定义mask.a渠道。注入面罩可让您在下游使用同一面罩。

invert

invert_mask

disabled

反转蒙版通道的使用,以便将颜色空间转换限制为蒙版的非白色区域。

fringe

fringe

disabled

启用后,仅将效果应用于蒙版的边缘。

禁用时,该效果将应用到整个蒙版。

(un)premult by

N/A

disabled

在右侧启用关联的通道。禁用此复选框与将频道设置为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

反转(非)预乘通道的使用。

mix

mix

1

在0的原始图像和1的完整色彩空间转换之间溶解。

分步指南

进行其他色彩空间转换