FUSION · FULL ARTICLE
ErodeDilate
Morphologically erodes or dilates bright regions in selected R/G/B/A channels. It is most often used to tune alpha after keying or roto, but it remains a general image filter rather than a mask-only node.
Overview
ErodeDilate is a channel-morphology image filter. It receives a normal RGBA Image, processes only the selected R/G/B/A channels, and returns a normal image stream. The input does not have to be a matte: it can be footage, graphics, an alpha-bearing key result, or a technical image map.
The sign rule belongs to channel values, not semantic foreground/background. Blackmagic describes negative Amount as erosion: darker areas grow and eat into brighter regions. Positive Amount is dilation: brighter regions grow into darker ones. Therefore the shortcut 'negative shrinks the matte' is only reliable when the useful matte region is actually encoded white.
That distinction matters after keying. With a conventional white subject in alpha, a small negative Amount moves the opaque boundary inward and can remove an outer fringe. With an inverted matte where the subject is dark, the same erosion grows the dark subject region. Inspect the actual channel in the Viewer before deciding which sign represents the intended subject-space correction.
Red, Green, Blue and Alpha are four independent authored controls. They decide which channels participate in morphology. For matte cleanup, Alpha-only is normally the safest starting point because RGB pixels then remain outside ErodeDilate processing. Blackmagic also distinguishes these pre-process channel selectors from the common RGBA controls applied later in the tool pipeline.
Filter selects the operation shape: Box, Linear, Gaussian or Circle. Blackmagic's Tool Reference and Fuse SDK confirm those four choices, but the reviewed user-facing reference does not publish exact numerical native-node kernel weights. Document the observable shape/response and compare filters on the real edge instead of inventing a precise convolution matrix.
Lock X/Y is enabled in the captured default state and exposes one Amount control. Disabling it splits the UI into Amount X and Amount Y so horizontal and vertical morphology can differ. This is useful for directional fringe or anisotropic utility maps, but large axis differences visibly reshape silhouettes and should not be treated as ordinary cleanup.
Blackmagic's Fuse SDK documents an additional Circle constraint: X and Y amounts must use the same sign. That is a useful implementation boundary for the ErodeDilate operation; unusual opposite-sign native-UI combinations should still be treated as a live target-build verification item. Normal matte work should keep both axes on the same side of zero.
Clipping Mode is not a quality setting or kernel type. It controls processing boundaries relative to Fusion's Domain of Definition. Frame evaluates against the full frame, Domain respects the upstream DoD and can clip large filtering at its edge, and None disables the additional source-clipping step. The difference matters most for elements whose active DoD is smaller than the composition frame.
Effect Mask is a separate standard blue mask input that limits spatial contribution. It does not become the source matte being eroded or dilated. If the matte itself must change, its values need to exist inside the Image stream, commonly in Alpha or in an image map prepared by Bitmap/MatteControl-style processing.
Keyframe diamonds beside controls are Fusion's standard animation affordance rather than separate authored ErodeDilate controls. If Amount needs temporal correction, establish a correct static edge first and then judge smooth playback to avoid edge pumping.
Production use is usually conservative and staged. A keyed edge may use Alpha-only erosion followed by a small Blur/MatteControl adjustment and despill. A glow/light-wrap branch may use Alpha-only dilation followed by Blur while a parallel sharp branch preserves the original core. Large morphology rapidly removes hair, thin lines, motion blur and gradients, so judge the result in playback and against contrasting backgrounds.
When to use it
- Slightly tighten a conventional white alpha after green/blue-screen keying before despill.
- Expand alpha on a separate branch before Blur/Glow/Light Wrap while preserving a sharp core.
- Close small dark holes inside a bright matte with restrained positive dilation.
- Remove small bright specks from a matte with restrained negative erosion.
- Use separate Amount X/Y values for a directional edge defect.
- Limit morphology to one problematic silhouette region with Effect Mask.
- Process technical RGB maps when morphology is required on color channels rather than alpha.
Article screenshots
Inputs & outputs
ErodeDilate morphologically changes selected channels inside Image; Effect Mask only localizes contribution
Image carries the actual R/G/B/A data for erosion/dilation. Negative Amount lets dark values eat bright values; positive Amount lets bright values grow into dark values. Subject-space grow/shrink therefore depends on channel polarity. The blue Effect Mask does not become the source matte.
Selects R/G/B/A channels, applies Box/Linear/Gaussian/Circle morphology with linked or independent X/Y amount, and returns a normal RGBA image using the chosen Clipping Mode.
Inputs
- Image
RGBA or utility image whose channels need morphology
Receives: A keyer result, Text+, graphic with alpha, Bitmap/MatteControl-prepared RGBA, or another image map.
Inside the node: ErodeDilate processes only the enabled R/G/B/A channels in this Image. With Alpha-only, RGB stays outside morphology; Amount sign is interpreted from bright/dark channel values.
Typical sources: Delta/Chroma key result · Text+ · MatteControl result · graphic / utility map
Do not assume white always means subject. Inspect target-channel polarity in the Viewer before choosing Amount sign.
- Effect Mask
Where the processed result is allowed
Receives: A mask branch such as Polygon, Rectangle, Ellipse or Bitmap.
Inside the node: Spatially limits ErodeDilate contribution and preserves the original Image outside the mask.
Typical sources: Polygon · Rectangle · Ellipse · Bitmap
This is not the source matte being grown/shrunk. To change a matte, its values must live in Image, usually Alpha.
Outputs and destination
Output
Normal RGBA image with morphology applied only to selected channels; it is not a blue mask stream.
Next step: MatteControl · Blur / Glow branch · Despill · Merge · Bitmap · MediaOut
Strong morphology removes hair, thin detail, motion blur and soft gradients; inspect playback and contrasting backgrounds.
- Output
- Normal RGBA image output with only the selected channels morphologically modified.
Processing order
- Image supplies RGBA/utility data.
- R/G/B/A select channels that actually undergo morphology.
- Filter selects operation shape.
- Lock X/Y presents linked Amount or independent Amount X/Y.
- Negative erodes bright values; positive dilates bright values.
- Clipping Mode chooses Frame/Domain/None boundary behavior.
- Optional Effect Mask limits spatial contribution without replacing the source channel.
- Output returns the modified RGBA image stream.
Tighten a conventional white alpha
Keyer RGBA → ErodeDilate(A only, small negative Amount) → MatteControl / Despill → Merge
Negative Amount erodes bright alpha. The subject tightens here only because the conventional subject alpha is white; an inverted matte changes the subject-space meaning of the same sign.
ErodeDilate works on bright/dark values of selected channels inside Image. Effect Mask only limits the area of contribution. For a conventional white-subject alpha, negative erodes inward and positive dilates outward; do not transfer that subject-space rule blindly to an inverted matte.
Parameters
ErodeDilate · Inspector reference
Read ErodeDilate as channel morphology rather than generic matte cleanup: establish polarity and R/G/B/A first, then Filter, linked/unlinked Amount, and only then Clipping Mode.
- Polarity
- bright vs dark channel values
- Channels
- R / G / B / A
- Kernel
- Box / Linear / Gaussian / Circle
- Geometry
- Lock X/Y → Amount X/Y
- Boundary
- Frame / Domain / None
Channels · Which channels actually undergo morphology
Red, Green, Blue and Alpha are four independent pre-process selectors. Alpha-only is the common matte-cleanup baseline.
- Red Channel
Channels > Red ChannelEnables morphology on the R channel. When Red is disabled, the red channel bypasses ErodeDilate processing. For normal alpha cleanup it is usually disabled with Green and Blue.
Check / distinguish: Do not enable RGB by habit; these selectors change which source data is processed.
- Green Channel
Channels > Green ChannelEnables morphology on the G channel. Green is independent from Red, Blue and Alpha. It is useful for technical maps or deliberate channel-specific work but is not normally required for alpha cleanup.
Check / distinguish: If the task is specifically alpha cleanup, leave Green off unless you have a separate reason to process it.
- Blue Channel
Channels > Blue ChannelEnables morphology on the B channel. Blue undergoes the same erode/dilate operation as any other enabled channel and can visibly change edge color on normal footage.
Check / distinguish: Inspect RGB after enabling Blue; color morphology and alpha morphology are different tasks.
- Alpha Channel
Channels > Alpha ChannelEnables morphology on the A channel. This is the main matte-cleanup control. With a conventional white/opaque subject, negative Amount erodes the subject alpha inward and positive Amount expands it; an inverted matte reverses the subject-space interpretation.
Check / distinguish: Look at Alpha in the Viewer before choosing the sign so you know which region is bright and which is dark.
- Bright values ≠ semantic foreground
Viewer > target channelErode/Dilate operates on channel values. A white region may represent subject, background or utility data—the node does not know the semantic role.
Check / distinguish: Invert a test matte and repeat the same Amount; the subject-space interpretation should reverse.
- Alpha-only baseline
Controls > R/G/B/AFor keyed/roto matte work, disabling R/G/B keeps color channels outside morphology and leaves A as the only target.
Check / distinguish: A/B enable Red at the same Amount and compare edge color against Alpha-only.
- Channel selectors are pre-process
Controls > R/G/B/ABlackmagic explicitly separates these selectors from common RGBA controls: ErodeDilate uses them before the operation.
Check / distinguish: A disabled channel should bypass morphology rather than merely being hidden after processing.
Filter · Operation shape
Filter selects Box, Linear, Gaussian or Circle. This is operation shape/response, not strength or threshold.
- Filter
Filter > FilterSelects Box, Linear, Gaussian or Circle operation shape. Blackmagic documents these four shapes. They produce different edge response on corners, diagonals and rounded forms. Exact numerical native-node kernel weights are not published in the reviewed user reference.
Check / distinguish: Compare filters at the same Amount on the actual problematic edge instead of choosing by name alone.
- Filter · Box
Controls > Filter > BoxDocumented filter shape and a direct technical baseline for comparing the other modes.
Check / distinguish: Compare a diagonal and corner at the same Amount against Circle/Gaussian.
- Filter · Linear
Controls > Filter > LinearDocumented filter shape with a different edge response from Box.
Check / distinguish: Do not change Amount during the A/B against Box or the cause becomes ambiguous.
- Filter · Gaussian
Controls > Filter > GaussianDocumented filter shape. Its name does not mean ErodeDilate replaces a dedicated Blur/feather stage.
Check / distinguish: Toggle a downstream Blur separately so boundary shift and softness remain distinct.
- Filter · Circle
Controls > Filter > CircleDocumented circular filter shape. The Fuse SDK additionally requires Amount X and Y to use the same sign for Circle.
Check / distinguish: For normal Circle use keep both axis amounts positive or both negative; live-test any unusual opposite-sign case.
- Exact native kernel weights are not published
Controls > FilterThe reviewed Tool Reference lists filter shapes without a complete numerical kernel matrix. The exact native weights are therefore not established by this description.
Check / distinguish: Document observable shape/behavior and keep it separate from unverified internal math.
Amount · Sign and axis geometry
Lock X/Y presents linked Amount; after unlock the UI splits into Amount X and Amount Y. Sign refers to bright/dark values rather than semantic foreground.
- Lock X/Y
Amount > Lock X/YLinks horizontal and vertical morphology amounts. With Lock X/Y enabled the UI presents one Amount. Disabling it replaces that linked presentation with Amount X and Amount Y controls.
Check / distinguish: Keep Lock enabled as a baseline and split the axes only after identifying a genuinely directional defect.
- Amount
Amount > AmountLinked erosion/dilation amount when Lock X/Y is enabled. Negative values erode bright regions by growing darker values; positive values dilate bright regions into darker areas. This rule is about channel intensity, not semantic foreground/background.
Check / distinguish: For a conventional white subject alpha, start with a very small negative value for cleanup or positive value for grow.
- Amount X
Amount > Amount XHorizontal morphology amount when Lock X/Y is disabled. Controls horizontal edge processing independently of the vertical direction and can target left/right fringe more strongly.
Check / distinguish: Compare against the linked baseline; if the silhouette starts looking stretched, the correction is becoming geometric distortion.
- Amount Y
Amount > Amount YVertical morphology amount when Lock X/Y is disabled. Controls vertical edge processing independently of Amount X and enables anisotropic morphology.
Check / distinguish: For Circle keep X/Y on the same sign; opposite-sign combinations remain a live target-build boundary.
- Amount sign
Controls > AmountNegative Amount erodes bright values: dark grows into light. Positive Amount dilates bright values: light grows into dark.
Check / distinguish: On a white subject alpha, negative should tighten the white region; on an inverted matte the same sign changes subject-space meaning.
- Lock X/Y changes the UI
Controls > Lock X/YWith Lock on the UI shows one Amount. After unlock that linked presentation is replaced by Amount X and Amount Y; these are conditional labels, not three simultaneous sliders.
Check / distinguish: Toggle Lock and verify Amount gives way to X/Y controls.
- Amount X
Controls > Amount XAfter unlock, controls horizontal morphology independently from Y.
Check / distinguish: On a rectangular alpha make X stronger than Y and compare left/right against top/bottom.
- Amount Y
Controls > Amount YAfter unlock, controls vertical morphology independently from X.
Check / distinguish: Return X=Y and verify the anisotropic effect disappears.
Boundary · Processing boundary
Clipping Mode selects Frame/Domain/None behavior relative to Fusion's Domain of Definition.
- Clipping Mode
Boundary > Clipping ModeControls processing boundaries relative to the frame and upstream Domain of Definition. Frame evaluates against the full frame; Domain respects upstream DoD and can clip a large operation at its boundary; None disables the additional source-clipping step. This is not an effect-strength control or a replacement for Effect Mask.
Check / distinguish: If morphology stops unexpectedly at an element or frame boundary, compare Frame, Domain and None before changing Amount.
- Frame
Controls > Clipping Mode > FrameFrame uses the full frame for boundary handling and treats missing upstream DoD data as black/transparent.
Check / distinguish: On a small-DoD element compare Frame with Domain at a larger Amount.
- Domain
Controls > Clipping Mode > DomainDomain respects the upstream Domain of Definition; large morphology can visibly clip at that boundary.
Check / distinguish: If grow stops at the DoD, switch to Frame only as a diagnostic A/B.
- None
Controls > Clipping Mode > NoneNone disables the additional source-clipping step. It is not an unlimited canvas and does not replace understanding DoD.
Check / distinguish: Compare None/Domain/Frame on the same source without other changes.
- Effect Mask is localization only
Flow > Effect MaskThe blue Effect Mask limits ErodeDilate contribution spatially; the source matte for morphology still lives in an Image channel.
Check / distinguish: Feed Rectangle into Effect Mask: outside it the original Image should remain, but Rectangle itself should not become the processed alpha.
- Animate only after the static edge works
Controls > keyframe diamondsKeyframe diamonds are the standard animation affordance for controls, not a separate authored ErodeDilate parameter.
Check / distinguish: Find the static Amount first, then judge animated correction in playback for edge pumping.
Before adjusting the node
- Before adjusting Amount, inspect the target channel and establish polarity: negative erodes bright values, positive dilates bright values.
- For alpha cleanup start with A only; enable R/G/B only for a deliberate channel-processing task.
- Compare Filters at the same Amount so kernel shape and strength are not changing together.
- Disable Lock X/Y only for a directional defect; Amount X/Y are axis morphology, not Transform scale.
- Effect Mask is not the source matte; the values being processed must live in an Image channel.
- If the edge clips at DoD/frame boundaries, compare Frame/Domain/None before changing Amount.
- Inspect thin detail and motion blur in playback because strong morphology removes them quickly.
Reference documentation
- Blackmagic Design · Fusion Visual Effects
Official Blackmagic learning material for Fusion logic, masks, compositing and core tools.
- Blackmagic Design · DaVinci Resolve support
Current Resolve/Fusion manuals and support material. Exact control names and placement can vary by version.
Examples
Contracted matte and a fresh color fill
Contract alpha, extract it with Bitmap and recolor the shape. This is a matte demonstration, not a source-image RGB treatment.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21; authored from existing project documentation, live build validation still separate · Free / Studio · Windows target; other OS not validated in this package
1920 × 1080 · 24 fps · 96 frames · DaVinci YRGB / Rec.709 Gamma 2.4; no LUT
- Native Fusion nodes only
Nodes and connections
BASE— BASE · BackgroundTEXT— TEXT · TextPlusER— ERODE · ErodeDilateM1— M1 · MergeOUT— OUT · MediaOutBM— Processed alpha · BitmapMaskCOLOR— Color from the new alpha · Background
| Source | Destination | Data |
|---|---|---|
TEXT (TEXT)Output | ERODE (ER)Image | image |
BASE (BASE)Output | M1 (M1)Background | image |
Color from the new alpha (COLOR)Output | M1 (M1)Foreground | image |
M1 (M1)Output | OUT (OUT)Input | image |
ERODE (ER)Output | Processed alpha (BM)Image | image |
Processed alpha (BM)Mask | Color from the new alpha (COLOR)EffectMask | mask |
Graph output: OUT (OUT)
Parameter values
- ERODE (ER) / Controls / Red Channel
falseKeep source red outside morphology.
- ERODE (ER) / Controls / Green Channel
falseKeep source green outside morphology.
- ERODE (ER) / Controls / Blue Channel
falseKeep source blue outside morphology.
- ERODE (ER) / Controls / Alpha Channel
trueProcess only the conventional white/opaque alpha.
- ERODE (ER) / Controls / Filter
"Gaussian"Use one documented filter shape while isolating Amount polarity.
- ERODE (ER) / Controls / Lock X/Y
trueKeep morphology isotropic for the first polarity test.
- ERODE (ER) / Controls / Amount
-0.004Negative erosion lets dark alpha values eat into the white opaque Text+ shape.
- ERODE (ER) / Controls / Clipping Mode
"Frame"Use a predictable full-frame boundary baseline.
- Processed alpha (BM) / Controls / Channel
"Alpha"Read the modified alpha as fill coverage. Bitmap makes channel selection explicit; a normal Effect Mask can also read an image with a selected channel.
- Color from the new alpha (COLOR) / Controls / Color
[0.05,0.5,1,1]The colored Background generates RGB and alpha consistently from the new mask. The source RGB is not composited directly after alpha-only processing.
- BASE (BASE) / Controls / Color
[0.015,0.015,0.015,1]An opaque dark background reveals the color and soft boundary.
- TEXT (TEXT) / Text / Styled Text
"MATTE"Nonempty Text+ creates a reproducible shape with fine edges.
- TEXT (TEXT) / Text / Size
0.18Large letters make the silhouette change easy to compare.
Reproduce the example
- Create the source shape: TEXT with MATTE lettering, or SHAPE under SHAPEMASK. Feed it to ER.Image.
ErodeDilate reads image alpha. Matte processing is separated from coloring the result.
Check: Source alpha is white inside the shape and black outside.
- Enable only Alpha in ER. Set Filter and Amount from the table; in the local example connect LOCAL to ER.EffectMask.
A negative Amount contracts the white matte; a positive value expands it. LOCAL blends processed and original results only within its region.
Check: Compare alpha before and after ER. It is wider in the halo example and narrower in the processed regions of the other examples.
- Connect ER.Output → BM.Image and BM.Mask → COLOR.EffectMask. Select Alpha in BM and set COLOR to blue.
Background generates consistent new RGBA from the modified matte. This does not reuse source-colored RGB after editing alpha alone.
Check: COLOR displays a blue silhouette with the same alpha as ER. Outside the matte, RGB and alpha are zero.
- For the halo, feed COLOR to BL, blur R/G/B/A together, connect BL to M1.Foreground, and add the original TEXT through M2. In the other examples COLOR goes directly to M1.Foreground.
The blur receives already colored, consistent RGBA; the main text remains sharp.
Check: Inspect the result over dark BASE and check alpha of each intermediate result separately.
Expected result
- OUT (OUT) · frame 48
The blue lettering has a slightly narrower silhouette. Its color is regenerated from the processed matte.
Alpha: ER changes alpha only. COLOR creates premultiplied RGBA from it; the opaque BASE makes final alpha equal to 1.
When the result differs
- The subject grows instead of shrinking
Cause: The source matte has inverted polarity or the comparison is not being made in Alpha
Correction: Open Alpha Viewer, identify bright/dark regions, and choose the sign from value erosion/dilation rather than the semantic word foreground.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion node-graph and compositing principles; exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — DaVinci Resolve 17 Reference Manual: Resolve FX Sharpen
Resolve FX Sharpen: multi-scale detail decomposition, Sharpen Amount, Fine Detail Size, Fine/Medium/Large Details and Sharpen Chroma. Current Inspector names/state are cross-checked against the captured Resolve screenshot in the article.
- Blackmagic Design — DaVinci Resolve / Fusion: Sharpen Edges
Fusion/Resolve sharpening workflow reference; exact SharpenEdges control names and captured values are cross-checked against the Resolve 21 Inspector screenshot bundled with this article.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shear
Krokodove > Image Warp Tools: Shear applies an angular shear effect and an additional input can determine shear intensity. Exact Controls/Render names and values are cross-checked against the captured Resolve 21 screenshots bundled with the article; exact socket label and channel interpretation remain live validation items.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shuffle
Krokodove > Image Warp Tools: Shuffle repositions a subdivided frame within the image. Current Controls/Render values are cross-checked against the Resolve 21 screenshots bundled with the article; exact target-build topology beyond the reviewed single Image Input remains a live validation item.
- Blackmagic Design — Fusion Tool Reference: Defocus
Defocus [DFO] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion Tool Reference: Unsharp Mask
Unsharp Mask [US] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion 9 Tool Reference: Color Tools
Color Curves, Color Gain, Color Space and Hue Curves chapters; authored exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — Fusion Tool Reference: ErodeDilate
Filter Tools > ErodeDilate: RGBA channel selectors, Box/Linear/Gaussian/Circle filter choices, Lock X/Y, Amount sign semantics and native ErodeDilate control behavior; current Resolve 21 labels are cross-checked against the bundled Inspector captures.
- Blackmagic Design — Fusion Fuse SDK: Image:ErodeDilate
Image:ErodeDilate API: independent Amount X/Y, negative erosion versus positive dilation, filter-shape names, RGBA enable flags, normalized amount scale and Circle same-sign X/Y requirement.
Colored halo from an expanded matte
Expand the text alpha, generate a blue Background through it, blur matching RGB and alpha together, then overlay the original sharp text.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21; authored from existing project documentation, live build validation still separate · Free / Studio · Windows target; other OS not validated in this package
1920 × 1080 · 24 fps · 96 frames · DaVinci YRGB / Rec.709 Gamma 2.4; no LUT
- Native Fusion nodes only
Nodes and connections
BASE— BASE · BackgroundTEXT— TEXT · TextPlusER— GROW · ErodeDilateBL— BLUR · BlurM1— M1 · MergeM2— M2 · MergeOUT— OUT · MediaOutBM— Processed alpha · BitmapMaskCOLOR— Color from the new alpha · Background
| Source | Destination | Data |
|---|---|---|
TEXT (TEXT)Output | GROW (ER)Image | image |
Color from the new alpha (COLOR)Output | BLUR (BL)Input | image |
BASE (BASE)Output | M1 (M1)Background | image |
BLUR (BL)Output | M1 (M1)Foreground | image |
M1 (M1)Output | M2 (M2)Background | image |
TEXT (TEXT)Output | M2 (M2)Foreground | image |
M2 (M2)Output | OUT (OUT)Input | image |
GROW (ER)Output | Processed alpha (BM)Image | image |
Processed alpha (BM)Mask | Color from the new alpha (COLOR)EffectMask | mask |
Graph output: OUT (OUT)
Parameter values
- GROW (ER) / Controls / Red Channel
falseKeep glow morphology out of RGB.
- GROW (ER) / Controls / Green Channel
falseKeep glow morphology out of RGB.
- GROW (ER) / Controls / Blue Channel
falseKeep glow morphology out of RGB.
- GROW (ER) / Controls / Alpha Channel
trueExpand only the white alpha coverage.
- GROW (ER) / Controls / Filter
"Circle"Use a rounded documented filter shape for the title alpha.
- GROW (ER) / Controls / Lock X/Y
trueKeep X/Y on the same positive sign for Circle.
- GROW (ER) / Controls / Amount
0.012Positive dilation grows the white alpha into darker surroundings.
- BLUR (BL) / Controls / Blur Size
8Soften the expanded branch into a halo.
- M1 (M1) / Controls / Blend
0.3Keep halo contribution subordinate to the sharp core.
- Processed alpha (BM) / Controls / Channel
"Alpha"Read the modified alpha as fill coverage. Bitmap makes channel selection explicit; a normal Effect Mask can also read an image with a selected channel.
- Color from the new alpha (COLOR) / Controls / Color
[0.05,0.5,1,1]The colored Background generates RGB and alpha consistently from the new mask. The source RGB is not composited directly after alpha-only processing.
- BASE (BASE) / Controls / Color
[0.015,0.015,0.015,1]An opaque dark background reveals the color and soft boundary.
- TEXT (TEXT) / Text / Styled Text
"MATTE"Nonempty Text+ creates a reproducible shape with fine edges.
- TEXT (TEXT) / Text / Size
0.18Large letters make the silhouette change easy to compare.
- BLUR (BL) / Controls / Red
trueBlur matching RGB and alpha together to produce a colored translucent halo.
- BLUR (BL) / Controls / Green
trueBlur matching RGB and alpha together to produce a colored translucent halo.
- BLUR (BL) / Controls / Blue
trueBlur matching RGB and alpha together to produce a colored translucent halo.
- BLUR (BL) / Controls / Alpha
trueBlur matching RGB and alpha together to produce a colored translucent halo.
Reproduce the example
- Create the source shape: TEXT with MATTE lettering, or SHAPE under SHAPEMASK. Feed it to ER.Image.
ErodeDilate reads image alpha. Matte processing is separated from coloring the result.
Check: Source alpha is white inside the shape and black outside.
- Enable only Alpha in ER. Set Filter and Amount from the table; in the local example connect LOCAL to ER.EffectMask.
A negative Amount contracts the white matte; a positive value expands it. LOCAL blends processed and original results only within its region.
Check: Compare alpha before and after ER. It is wider in the halo example and narrower in the processed regions of the other examples.
- Connect ER.Output → BM.Image and BM.Mask → COLOR.EffectMask. Select Alpha in BM and set COLOR to blue.
Background generates consistent new RGBA from the modified matte. This does not reuse source-colored RGB after editing alpha alone.
Check: COLOR displays a blue silhouette with the same alpha as ER. Outside the matte, RGB and alpha are zero.
- For the halo, feed COLOR to BL, blur R/G/B/A together, connect BL to M1.Foreground, and add the original TEXT through M2. In the other examples COLOR goes directly to M1.Foreground.
The blur receives already colored, consistent RGBA; the main text remains sharp.
Check: Inspect the result over dark BASE and check alpha of each intermediate result separately.
Expected result
- OUT (OUT) · frame 48
A soft blue halo surrounds the original sharp text, with color extending beyond the original alpha boundary.
Alpha: ER changes alpha only. COLOR creates premultiplied RGBA from it; the opaque BASE makes final alpha equal to 1.
When the result differs
- The main text also became thicker
Cause: ErodeDilate sits on the only shared branch instead of a separate halo branch
Correction: Restore the parallel sharp branch and apply dilation only to the halo branch.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion node-graph and compositing principles; exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — DaVinci Resolve 17 Reference Manual: Resolve FX Sharpen
Resolve FX Sharpen: multi-scale detail decomposition, Sharpen Amount, Fine Detail Size, Fine/Medium/Large Details and Sharpen Chroma. Current Inspector names/state are cross-checked against the captured Resolve screenshot in the article.
- Blackmagic Design — DaVinci Resolve / Fusion: Sharpen Edges
Fusion/Resolve sharpening workflow reference; exact SharpenEdges control names and captured values are cross-checked against the Resolve 21 Inspector screenshot bundled with this article.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shear
Krokodove > Image Warp Tools: Shear applies an angular shear effect and an additional input can determine shear intensity. Exact Controls/Render names and values are cross-checked against the captured Resolve 21 screenshots bundled with the article; exact socket label and channel interpretation remain live validation items.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shuffle
Krokodove > Image Warp Tools: Shuffle repositions a subdivided frame within the image. Current Controls/Render values are cross-checked against the Resolve 21 screenshots bundled with the article; exact target-build topology beyond the reviewed single Image Input remains a live validation item.
- Blackmagic Design — Fusion Tool Reference: Defocus
Defocus [DFO] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion Tool Reference: Unsharp Mask
Unsharp Mask [US] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion 9 Tool Reference: Color Tools
Color Curves, Color Gain, Color Space and Hue Curves chapters; authored exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — Fusion Tool Reference: ErodeDilate
Filter Tools > ErodeDilate: RGBA channel selectors, Box/Linear/Gaussian/Circle filter choices, Lock X/Y, Amount sign semantics and native ErodeDilate control behavior; current Resolve 21 labels are cross-checked against the bundled Inspector captures.
- Blackmagic Design — Fusion Fuse SDK: Image:ErodeDilate
Image:ErodeDilate API: independent Amount X/Y, negative erosion versus positive dilation, filter-shape names, RGBA enable flags, normalized amount scale and Circle same-sign X/Y requirement.
Local alpha contraction along separate axes
Limit separate Amount X/Y values with LOCAL, extract the resulting alpha and visualize it as a new consistent color fill.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21; authored from existing project documentation, live build validation still separate · Free / Studio · Windows target; other OS not validated in this package
1920 × 1080 · 24 fps · 96 frames · DaVinci YRGB / Rec.709 Gamma 2.4; no LUT
- Native Fusion nodes only
Nodes and connections
BASE— BASE · BackgroundSHAPE— SHAPE · BackgroundSHAPEMASK— SHAPE MASK · RectangleMaskLOCAL— LOCAL MASK · RectangleMaskER— AXIS ERODE · ErodeDilateM1— M1 · MergeOUT— OUT · MediaOutBM— Processed alpha · BitmapMaskCOLOR— Color from the new alpha · Background
| Source | Destination | Data |
|---|---|---|
SHAPE MASK (SHAPEMASK)Mask | SHAPE (SHAPE)EffectMask | mask |
SHAPE (SHAPE)Output | AXIS ERODE (ER)Image | image |
LOCAL MASK (LOCAL)Mask | AXIS ERODE (ER)EffectMask | mask |
BASE (BASE)Output | M1 (M1)Background | image |
Color from the new alpha (COLOR)Output | M1 (M1)Foreground | image |
M1 (M1)Output | OUT (OUT)Input | image |
AXIS ERODE (ER)Output | Processed alpha (BM)Image | image |
Processed alpha (BM)Mask | Color from the new alpha (COLOR)EffectMask | mask |
Graph output: OUT (OUT)
Parameter values
- SHAPE MASK (SHAPEMASK) / Controls / Center
[0.5,0.5]Create a centered white opaque test shape.
- SHAPE MASK (SHAPEMASK) / Controls / Width
0.46Give the test shape clear left/right edges.
- SHAPE MASK (SHAPEMASK) / Controls / Height
0.28Keep visible top/bottom edges for X/Y comparison.
- LOCAL MASK (LOCAL) / Controls / Center
[0.35,0.5]Restrict morphology to the left portion of the image.
- LOCAL MASK (LOCAL) / Controls / Width
0.35Cover only part of the test shape.
- LOCAL MASK (LOCAL) / Controls / Height
0.7Span the shape vertically so the spatial split is easy to inspect.
- AXIS ERODE (ER) / Controls / Red Channel
falseIsolate alpha morphology.
- AXIS ERODE (ER) / Controls / Green Channel
falseIsolate alpha morphology.
- AXIS ERODE (ER) / Controls / Blue Channel
falseIsolate alpha morphology.
- AXIS ERODE (ER) / Controls / Alpha Channel
trueProcess the white opaque alpha of SHAPE.
- AXIS ERODE (ER) / Controls / Filter
"Linear"Use a non-Circle baseline for anisotropic testing.
- AXIS ERODE (ER) / Controls / Lock X/Y
falseExpose independent Amount X and Amount Y.
- AXIS ERODE (ER) / Controls / Amount X
-0.018Erode left/right alpha boundaries more strongly.
- AXIS ERODE (ER) / Controls / Amount Y
-0.004Keep top/bottom erosion much smaller.
- AXIS ERODE (ER) / Controls / Clipping Mode
"Frame"Keep frame boundary handling fixed while testing axes and Effect Mask.
- Processed alpha (BM) / Controls / Channel
"Alpha"Read the modified alpha as fill coverage. Bitmap makes channel selection explicit; a normal Effect Mask can also read an image with a selected channel.
- Color from the new alpha (COLOR) / Controls / Color
[0.05,0.5,1,1]The colored Background generates RGB and alpha consistently from the new mask. The source RGB is not composited directly after alpha-only processing.
- BASE (BASE) / Controls / Color
[0.015,0.015,0.015,1]An opaque dark background reveals the color and soft boundary.
- SHAPE (SHAPE) / Controls / Color
[1,1,1,1]A white source rectangle creates the alpha processed by ErodeDilate.
Reproduce the example
- Create the source shape: TEXT with MATTE lettering, or SHAPE under SHAPEMASK. Feed it to ER.Image.
ErodeDilate reads image alpha. Matte processing is separated from coloring the result.
Check: Source alpha is white inside the shape and black outside.
- Enable only Alpha in ER. Set Filter and Amount from the table; in the local example connect LOCAL to ER.EffectMask.
A negative Amount contracts the white matte; a positive value expands it. LOCAL blends processed and original results only within its region.
Check: Compare alpha before and after ER. It is wider in the halo example and narrower in the processed regions of the other examples.
- Connect ER.Output → BM.Image and BM.Mask → COLOR.EffectMask. Select Alpha in BM and set COLOR to blue.
Background generates consistent new RGBA from the modified matte. This does not reuse source-colored RGB after editing alpha alone.
Check: COLOR displays a blue silhouette with the same alpha as ER. Outside the matte, RGB and alpha are zero.
- For the halo, feed COLOR to BL, blur R/G/B/A together, connect BL to M1.Foreground, and add the original TEXT through M2. In the other examples COLOR goes directly to M1.Foreground.
The blur receives already colored, consistent RGBA; the main text remains sharp.
Check: Inspect the result over dark BASE and check alpha of each intermediate result separately.
Expected result
- OUT (OUT) · frame 48
The blue rectangle contracts more strongly along X in the left region; outside LOCAL its silhouette is preserved.
Alpha: ER changes alpha only. COLOR creates premultiplied RGBA from it; the opaque BASE makes final alpha equal to 1.
When the result differs
- The whole shape changes equally in X/Y
Cause: Lock X/Y remained enabled or the settings were applied to a different ErodeDilate
Correction: Disable Lock X/Y on AXIS ERODE and verify separate Amount X / Amount Y controls.
- LOCAL MASK itself appears to grow/shrink
Cause: Image and Effect Mask roles were confused or the source shape was built through the wrong input
Correction: Connect SHAPE.Output to ER.Image and LOCAL.Mask only to ER.EffectMask.
References
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion node-graph and compositing principles; exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — DaVinci Resolve 17 Reference Manual: Resolve FX Sharpen
Resolve FX Sharpen: multi-scale detail decomposition, Sharpen Amount, Fine Detail Size, Fine/Medium/Large Details and Sharpen Chroma. Current Inspector names/state are cross-checked against the captured Resolve screenshot in the article.
- Blackmagic Design — DaVinci Resolve / Fusion: Sharpen Edges
Fusion/Resolve sharpening workflow reference; exact SharpenEdges control names and captured values are cross-checked against the Resolve 21 Inspector screenshot bundled with this article.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shear
Krokodove > Image Warp Tools: Shear applies an angular shear effect and an additional input can determine shear intensity. Exact Controls/Render names and values are cross-checked against the captured Resolve 21 screenshots bundled with the article; exact socket label and channel interpretation remain live validation items.
- Blackmagic Design — DaVinci Resolve 21 New Features Guide: Krokodove Shuffle
Krokodove > Image Warp Tools: Shuffle repositions a subdivided frame within the image. Current Controls/Render values are cross-checked against the Resolve 21 screenshots bundled with the article; exact target-build topology beyond the reviewed single Image Input remains a live validation item.
- Blackmagic Design — Fusion Tool Reference: Defocus
Defocus [DFO] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion Tool Reference: Unsharp Mask
Unsharp Mask [US] historical controls reference; target-build placement still requires Resolve 21 UI confirmation.
- Blackmagic Design — Fusion 9 Tool Reference: Color Tools
Color Curves, Color Gain, Color Space and Hue Curves chapters; authored exercise values are editorial starting points, not Blackmagic presets.
- Blackmagic Design — Fusion Tool Reference: ErodeDilate
Filter Tools > ErodeDilate: RGBA channel selectors, Box/Linear/Gaussian/Circle filter choices, Lock X/Y, Amount sign semantics and native ErodeDilate control behavior; current Resolve 21 labels are cross-checked against the bundled Inspector captures.
- Blackmagic Design — Fusion Fuse SDK: Image:ErodeDilate
Image:ErodeDilate API: independent Amount X/Y, negative erosion versus positive dilation, filter-shape names, RGBA enable flags, normalized amount scale and Circle same-sign X/Y requirement.
Other outlines from the article
Tighten a white key alpha
Alpha-only plus a small negative Amount erodes the conventional white subject matte inward without reprocessing RGB.
- Keyer RGBA
- ErodeDilate: A only, small negative Amount
- MatteControl / Despill
- Merge
Expand a halo branch
Positive dilation is applied only to a separate alpha branch, followed by Blur, while the sharp source is composited back above it.
- Text+
- Branch A: original
- Branch B: ErodeDilate(A+) → Blur
- Merge halo
- Merge sharp core
Directional edge correction
Unlock X/Y to erode more strongly horizontally when fringe is concentrated on left/right edges without applying the same amount vertically.
- RGBA matte
- ErodeDilate: Lock X/Y off
- Amount X ≠ Amount Y
- Alpha check
Localized edge repair
A Polygon or Rectangle in Effect Mask limits morphology to one bad segment while the actual alpha remains inside Image.
- Keyed Image → ErodeDilate
- Polygon → Effect Mask
- Output → Merge
Mistakes
- Memorizing negative as subject shrink and positive as subject grow without checking channel polarity.
- Feeding a matte only into Effect Mask and expecting that mask itself to be morphologically processed as source data.
- Leaving R/G/B enabled during alpha-only cleanup and unintentionally changing image edge color.
- Treating Amount like a threshold control; it changes morphology rather than merely rejecting weak pixel values.
- Using a large Amount and destroying hair, thin lines, motion blur or semitransparent detail.
- Inventing exact Box/Linear/Gaussian/Circle numerical kernels that are not published in the reviewed user documentation.
- Unlocking X/Y without a directional reason and distorting the silhouette with mismatched Amount X/Y.
- Ignoring Clipping Mode and trying to repair DoD-boundary clipping by increasing Amount.
- Judging a single still frame and missing edge pumping in motion.
Tips
- For a conventional keyed subject start with Alpha Viewer, A only, Lock X/Y on and a very small Amount.
- Determine sign from channel polarity: erosion/dilation acts on bright and dark values, not on the semantic word foreground.
- Compare Filter choices at identical Amount so kernel shape and operation strength are not changing at the same time.
- Do not design opposite-sign X/Y with Circle without live validation; Blackmagic's Fuse SDK requires matching axis signs for Circle.
- Separate jobs: ErodeDilate moves a boundary, while Blur/MatteControl softens or reshapes the edge afterward.
- For glow/light wrap keep the expanded matte on a separate branch so the sharp core does not become thicker.
- Use Effect Mask for local repair when most of the silhouette is already correct; this reduces collateral damage.
- Check Frame/Domain/None on small-DoD elements before assuming a strange boundary is an Amount or Filter problem.
Workflow order
- Inspect Alpha/R/G/B in the Viewer and identify both the channel to repair and its polarity.
- Feed the RGBA or matte-bearing image into Image; leave Effect Mask disconnected initially so the morphology itself is easy to diagnose.
- Enable only the channel selectors that should be processed; Alpha-only is the usual key-cleanup baseline.
- Keep Lock X/Y enabled and Amount at zero as a neutral starting state.
- Move Amount in small steps: negative erodes bright values and positive dilates bright values.
- Compare Box, Linear, Gaussian and Circle at the same Amount on real diagonal and rounded detail.
- Disable Lock X/Y only for a clearly directional defect, then tune Amount X and Amount Y separately.
- Check Clipping Mode near DoD/frame boundaries, especially on Text+, generators, cropped elements or compact matte passes.
- If only one region needs repair, connect Polygon/Rectangle/Bitmap to Effect Mask without confusing it with the alpha data inside Image.
- Judge Alpha and RGB across multiple frames and contrasting backgrounds, then add Blur, MatteControl or despill downstream if needed.
