Erode/Dilate

Simulates image erosion or dilation, an effect which will enlarge either the darkest or lightest pixels in the image.

This plugin has been completely redesigned in FxFactory Pro 6 to support advanced source and mask selection, chromatic aberration and animatable parameters.

The user interface encourages progressive discovery of the large number of features. Built-in presets offer shortcuts to popular styles and techniques. Master advanced techniques once and apply them to other plugins that share the same design.

Compatibility

Erode/Dilate is compatible with Final Cut Pro, Motion, Premiere, After Effects and DaVinci Resolve.

Parameters

Presets

Presets contain a snapshot of your effect configuration. 6 built-in presets are available.

When you save parameter configuration to a file on disk, this file can later be loaded to recreate the same effect configuration. Presets generated in one video application can be used by the same plug-in running in a different video application.

Working with the Presets Menu

Mask

This parameter enables a canvas preview of the pixels selected through the Source, Mask or Depth parameter sections.

Previewing the Source, Mask and Depth

Dilate / Erode

Effect

The following options are available:

Radius

Amount by which to grow darker or lighter pixels.

Source

Parameters in this section allow you to choose a set of pixels to apply the effect to, based on a number of techniques:

  • Luminance Range: select a range of pixels based on their brightness.
  • Color Key: select a range of pixels through a keying algorithm.
  • Edges: select pixels according to an edge detection algorithm.
  • Person Contour: select the main subject in the video frame through an AI-assisted algorithm. Works best with human subjects.
  • Object Tracker: select pixels by tracking one or more objects across the frame.
  • Face Detection: select pixels by detecting the location of human faces and tracking them across the frame for the duration of the clip.

Choosing Source Pixels

Original (left), selecting the darkest pixels (center) and lightest pixels (right)
Original (left), selecting the darkest pixels (center) and lightest pixels (right)

Mask

Parameters in this section define a shape used to crop the output of the effect with. When using an object tracker or face detection, the same mask shape is replicated for each object or face that appears in the frame.

  • Off: no cropping occurs.
  • Rectangle: crop the output to a rectangular shape.
  • Oval: crop the output to a circular shape.
  • Gradient: crop the output to a linear gradient.
  • Bar: crop the output to a two-sided gradient.
  • Custom: crop the output to a shape defined by a custom graphic.
  • Text: crop the outut to a shape defined by a title.

Choosing a Mask

Rectangular mask (left), gradient (center), gradient mixed with Person Contour (right)
Rectangular mask (left), gradient (center), gradient mixed with Person Contour (right)

Depth

Parameters in this section allow you to analyze your footage to estimate relative distance from the camera, and apply the effect only to a specific range of pixels.

Original vs increasing levels of depth-based blurring
Original vs increasing levels of depth-based blurring

On its default settings, the Depth parameters don’t affect the output at all. Click the Analyze button to being anaylsis:

A progress window will give you a preview of the estimate being made by the AI model for each frame:

When complete, the output isn’t immediately affected by the analysis. Let’s take the Edge Work filter as an example:

The Edge Work effect, initially applied to the entire frame
The Edge Work effect, initially applied to the entire frame

This is because the initial Range covers all possible values:

If you adjust the far end of the range, you will notice the effect being applied only to pixels that are nearer to the camera:

The output will reflect your choice with a clear demarcation between pixels that are within the range, and those outside:

Edge Work, with distant pixels excluded
Edge Work, with distant pixels excluded

Adjust the Softness parameter to soften this boundary, which has two side effects: blurring the contour as well as including pixels that are close to the selected depth range:

In our example, increasing Softness allows pixels that were previously excluded for being too distant from the camera, to be included again:

Edge Work, with distant pixels dialed back by adjusting the Softness parameter
Edge Work, with distant pixels dialed back by adjusting the Softness parameter

The Invert parameter allows you to quickly toggle the side effects of depth-based masking. If the Range initially controls what pixels are included in the effect, selecting Invert causes the range to exclude those same pixels instead.

Note that Depth parameters are applied last, after both Source and Mask parameters have already been use to compute the current mask. This allows you to combine all three features together to create a better mask for your effect.

Chromatic Aberration

Parameters in this section allow you to apply color distortions inspired by lens geometry, but with greater artistic range.

Using Chromatic Aberration

Original (left), distortion of the red and blue channels (center) and of chroma (right)
Original (left), distortion of the red and blue channels (center) and of chroma (right)

Animation

This section allows you to animate effect parameters over time.

Build In/Out

Enable and control animation progress through a set of parameters.

When the animation is Off, no transition in or out of the effect occurs.

When the effect is set to build in and out by Trimming, the following parameters are displayed:

The Trim slider defines a range where the effect has been fully built. Any time outside this range is spent building the animation in or out. For example, if the Trim range is set between 20% and 80%, the effect builds in from the start of the clip up to 20% of its duration. The effects builds out from 80% to the end of the clip. If the clip were 5 seconds long, the build in and out animations last 1 second each.

When the effect is set to build in and out through a Duration, the following parameters are displayed:

The Build In (secs) and Build Out (secs) give you an exact way to decide how long each animation should last. Should your selection not be applicable to the current clip, a warning will appear in the output. For example, if your clip lasts only 3 seconds, it would be impossible to have the build in and out animations both last 2 seconds each (as the total would be 4 seconds).

When the effect is set to build in and out through Keyframes, a single parameter is displayed:

The Build In (Easing) and Build Out (Easing) parameters let you choose the animation curve when animating by Trimming the clip or by specifying a Duration.

The Progress parameter gives complete control over the animation to you. You will need to keyframe the Progress parameter using features of the video app. Note that there are no easing options when manually animating via keyframes.

Radius

Off by default.

Turns this parameter on to animate the Radius parameter.

Radius Animation

Aberration Amount

Off by default.

Parameters in this section allow you to apply color distortions inspired by lens geometry, but with greater artistic range.

Using Chromatic Aberration

Original (left), distortion of the red and blue channels (center) and of chroma (right)
Original (left), distortion of the red and blue channels (center) and of chroma (right)

Seed

A number that controls random aspects of the effect.

Click the New button to assign a new seed value. When the seed value is changed, the effect uses a different random sequence to produce a different output.

Edit the existing value to manually assign a seed number. This may help you replicate a particular sequence of random events. In Final Cut Pro and Motion, hold down the Option ⌥ key to access the Edit button in the inspector.