Erode (fast)

Also known as the Dilate node, Erode (fast) controls the relative amount of dark (negative size values) and light (positive size values) pixels in the input. This can be used to grow or shrink mattes, for example, an alpha matteā€™s pixels can be given a positive size value to cover more area.

Erode (fast) is similar to Erode (filter), but computationally less expensive.

Inputs and Controls

Connection Type

Connection Name

Function

Input

unnamed

The image or matte to erode.

Control (UI)

Knob (Scripting)

Default Value

Function

Dilate Tab

channels

channels

all

The effect is only applied to these channels.

If you set this to something other than all or none, you can use the checkboxes on the right to select individual channels.

size

size

0

Adjusts the size of pixels within the channel defined by the channels control. Positive values increase the light pixels and vice versa.

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 effect 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 effect is limited to the non-white areas of the mask.

fringe

fringe

disabled

When enabled, only apply the effect to the edge of the mask.

When disabled, the effect is applied to the entire mask.

mix

mix

1

Dissolves between the original image at 0 and the full effect at 1.