Erode (blur)

Similar to Erode (filter), but smoother, input pixels are filtered relative to the size control. Negative values cause brighter areas to expand into darker areas and positive values cause darker areas to expand into lighter areas - particularly useful with mattes. Additionally, you can add blur to the input using the blur and quality controls.

Note:  Solid areas of any color other than 0 or 1 change their color as they are treated as the anti-aliased edge. This can be corrected by using a different algorithm, such as the Erode (filter) node.

Inputs and Controls

Connection Type

Connection Name

Function

Input

unnamed

The image or matte to erode/blur.

Control (UI)

Knob (Scripting)

Default Value

Function

Erode Tab

channels

channels

none

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

-1

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

blur

blur

0

Blurs the edges of the generated mask.

quality

quality

15

Quality of the initial blur. Smaller values take less time to process.

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.