该节点将所选通道中的值约束或钳位到指定范围。默认情况下,它将所有通道限制在0到1之间的值。这对于确保输入的最黑的黑色和最白的白色在预期的显示设备上可见,或限制将数据馈送到不支持此范围之外的数字的后续节点非常有用。

也可以看看剪辑测试

输入和控制

连接类型

连接名称

功能

输入值

未命名

要固定其值的图像序列。

面具

用作遮罩的可选图像。默认情况下,钳位仅限于面罩的非黑色区域。

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

Control (UI)

Knob (Scripting)

Default Value

功能

Clamp Tab

channels

channels

all

该效果仅应用于这些通道。

如果您将此设置为除all要么none,您可以使用右侧的复选框选择单个频道。

minimum

minimum

0

下钳位值。默认情况下,所有小于此数字的值都将设置为此值。例如,如果将此值设置为0.2,则任何低于0.2的值都将设置为0.2。这具有导致黑色值变为灰色的效果。

但是,如果您检查enabled旁边的MinClampTo,所有低于此数字的值都设置为MinClampTo值。例如,如果将其设置为0.2并MinClampTo设为0.4,则任何低于0.2的值都设为0.4。

minimum_enable

enabled

Whether to clamp selected channels to a minimum value. Disabling both minimum and maximum effectively disables the node.

maximum

maximum

1

上限钳位值。默认情况下,所有高于此数字的值都将设置为此值。例如,如果将其设置为0.8,则任何高于0.8的值都将设置为0.8。这具有导致白色值变为灰色的效果。

但是,如果您检查enabled旁边的MinClampTo,所有高于此数字的值均设置为MaxClampTo值。例如,如果将其设置为0.8并MinClampTo设置为0.6,高于0.8的任何值均设置为0.6。

maximum_enable

enabled

Whether to clamp selected channels to a maximum value. Disabling both minimum and maximum effectively disables the node.

MinClampTo

MinClampTo

0

在以下情况下将低非法值钳位到的值MinClampTo已启用。这会将钳位区域设置为自定义颜色,使您可以可视化钳位范围或创建图形效果。

MinClampTo_
enable

disabled

When enabled, all values below minimum are clamped to the MinClampTo value.

When disabled, all values below minimum are clamped to the minimum value.

MaxClampTo

MaxClampTo

1

在以下情况下将高非法值钳位到的值MaxClampTo已启用。这会将钳位区域设置为自定义颜色,使您可以可视化钳位范围或创建图形效果。

MaxClampTo_
enable

disabled

When enabled, all values above maximum are clamped to the MaxClampTo value.

When disabled, all values above maximum are clamped to the maximum value.

mask

N/A

disabled

在右侧启用关联的遮罩通道。禁用此复选框与将频道设置为none

maskChannelInput

none

The channel to use as a mask. By default, the clamp 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 clamp 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的完全钳位效果之间溶解。

分步指南

钳位通道值