< Previous | Contents | Next >

Erode Dilate Node [ErDl]


image

The Erode Dilate node


Erode Dilate Node Introduction

The Erode Dilate node contracts or expands the image, depending on whether the Amount slider is set to a negative or positive value.

Inputs

The Erode Dilate node includes two inputs: one for the main image and the other for an effect mask to limit the area where the erode or dilate is applied.

Input: The orange input takes the RGBA channels from an image to calculate the custom filter.

Effect Mask: The optional blue effect mask input accepts a mask shape created by polylines, basic primitive shapes, paint strokes, or bitmaps from other tools. Connecting a mask to this input limits the erode or dilate to only those pixels within the mask. An effects mask is applied to the tool after the tool is processed.


Basic Node Setup

image

The Erode Dilate node is commonly used to contract or expand mattes. Below, a Luma Keyer is connected to the Erode Dilate and passes the modified key to a Matte Control where it is embedded into the image.


image

An Erode Dilate node placed after a Luma Keyer to operate on a Matte Control

Inspector


image

Erode Dilate controls


Controls Tab

The Controls tab includes the main Amount slider that determines whether you are performing an erode by entering a negative value or a dilate by entering a positive value.

Color Channels (RGBA)

The Erode Dilate node defaults to operating on R, G, B, and A channels. Selective channel editing is possible by enabling or disabling the checkboxes beside each channel.

This is not the same as the RGBA checkboxes found under the Common Controls. The node takes these controls into account before it processes. Deselecting a channel causes the node to skip that channel when processing, speeding up the rendering of the effect. In contrast, the channel controls under the Common Controls tab are applied after the node has processed.

Lock X/Y

image

The Lock X/Y checkbox is used to separate the Amount slider into amount X and amount Y, allowing a different value for the effect on each axis.

Amount

A negative value for Amount causes the image to erode. Eroding simulates the effect of an underexposed frame, shrinking the image by growing darker areas of the image so that they eat away at brighter regions.

A positive value for Amount causes the image to dilate, similar to the effect of overexposing a camera. Regions of high luminance and brightness grow, eating away at the darker regions of the image. Both techniques eradicate fine detail in the image and tend to posterize fine gradients.

The Amount slider scale is based on the input image width. An amount value of 1 = image width. So, if you want to erode or dilate by exactly 1 pixel on an HD image, you would enter 1/1920, or 0.00052083.

Common Controls

Settings Tab

The Settings tab controls are common to all Filter nodes, so their descriptions can be found in “The Common Controls” section at the end of this chapter.