FUSION · FULL ARTICLE
AlphaMatteShrinkandGrow
Morphologically reshapes an existing alpha/key matte: Shrink and Grow move the boundary, Opening removes small white speckles, and Closing fills small black holes.
Overview
The node assumes that an upstream keyer, roto, mask workflow, or source asset already provides a meaningful alpha. If that source matte is fundamentally wrong, morphology can only reshape the error; it cannot infer the intended foreground from color or scene semantics.
Morph Operation provides four distinct behaviors. Shrink contracts the opaque/white region, Grow expands it, Opening is useful for removing small white foreground speckles or protrusions, and Closing is useful for filling small black holes or cracks inside a foreground matte.
Shape defines the geometry of the morphology operator. Circle is a safe organic starting point, Square trends toward rectilinear geometry, and Diamond behaves differently around diagonals and corners. At extreme settings the kernel shape can visibly change the silhouette.
Radius controls the amount of the normal morphology pass. Increase it gradually: large values quickly erase hair, motion blur, semi-transparent edges, and thin geometry even when the broad silhouette appears cleaner.
Output / Process selects the channels receiving Morph Operation. RGB (Blank Alpha) processes RGB with the selected operation and blanks alpha; Alpha (RGB Unaffected) modifies alpha only; RGB + Alpha processes both. Inspect RGB and alpha separately rather than assuming every mode uses only the original matte.
Preview Alpha is a diagnostic view for holes, speckles, edge thickness, and fine detail. It should be used while tuning, then disabled so the final composite can be checked over bright and dark backgrounds.
Manual Iteration Control exposes direct operator application controls. Resolve 21 documents Operator Radius as the size of the operator and Repeat Operation as a repetition control that creates more extreme adjustments. Repeated morphology accumulates damage quickly on fine detail.
Effect Mask is a separate optional coverage input. It does not become the matte that Shrink/Grow processes; the source alpha still lives in the main Input and the blue mask only limits where the processed result contributes.
A practical workflow is to fix the upstream key first, choose the operation that matches the defect, use the smallest useful radius/repetition, inspect Preview Alpha, and then judge the final edge in motion over real backgrounds. Despill and contaminated edge color remain separate tasks.
Conceptually the tool is related to ErodeDilate, but this article describes the dedicated Resolve FX Key interface: four morphology operations, Shape, Radius, Process, Preview Alpha, and conditional manual-iteration controls.
When to use it
- Tighten a contaminated keyed edge with a small Shrink
- Recover a slightly over-eroded matte edge with Grow
- Remove small white speckles with Opening
- Fill small black pinholes or cracks with Closing
- Prepare alpha before MatteControl, despill, or final compositing
- Localize morphology with Effect Mask without changing the source matte
- Inspect matte geometry through Preview Alpha before judging the composite
Article screenshots
- AlphaMatteShrinkandGrow Controls with Morph Operation, Shape, Radius, Output and Advanced Options
- AlphaMatteShrinkandGrow Morph Operation menu: Shrink, Grow, Opening and Closing
- AlphaMatteShrinkandGrow Process menu: RGB Blank Alpha, Alpha RGB Unaffected and RGB plus Alpha
- AlphaMatteShrinkandGrow Shape menu: Square, Circle and Diamond
Inputs & outputs
AlphaMatteShrinkandGrow: Input carries the source alpha; Effect Mask only gates contribution
This is a 2D matte processor. Orange Input carries an RGBA/image stream with an existing alpha/key matte; that alpha undergoes Shrink/Grow/Opening/Closing. The optional blue Effect Mask only limits spatial contribution of the finished result and does not become the source matte.
Morphologically reshapes alpha with the selected Operation/Shape/Radius, optionally uses explicit operator repetition, and returns channel behavior according to Process.
Inputs
- Input
RGBA/image carrying the existing source alpha
Receives: A keyer/roto result, graphic with alpha, PNG/EXR, MediaIn/Loader or another 2D image branch whose alpha already represents intended foreground/background coverage.
Inside the node: The node reads alpha from this Input and applies the morphology operator. Process can keep RGB untouched or include it in output behavior, but the source matte still lives here.
Typical sources: DKeyer / ChromaKeyer result · MediaIn · Loader · MatteControl result · RGBA graphic
If the upstream key/roto is fundamentally wrong, morphology only reshapes the error. Repair selection/roto first, then clean the edge.
- Effect Mask
Optional spatial coverage
Receives: A Fusion mask stream such as Polygon, Rectangle, Ellipse, B-Spline or Bitmap.
Inside the node: Limits where the processed AlphaMatteShrinkandGrow result blends with the original Input. It does not replace the alpha processed by Morph Operation/Radius.
Typical sources: Polygon · Rectangle · Ellipse · B-Spline · Bitmap
Do not feed a matte here expecting it to become the morphology source. Source coverage for morphology must be carried by the main image Input.
Outputs and destination
Output
A 2D image result according to Process: modified alpha with RGB preserved, RGB with blank alpha, or combined RGB + Alpha.
Next step: MatteControl · Despill / ColorCorrector · Merge · Blur · MediaOut
Strong Shrink/Grow/Opening/Closing can erase hair, motion blur and thin detail. Inspect both alpha and composite in motion.
- Output
- 2D image result according to Process: modified alpha with RGB preserved, RGB with blank alpha, or a combined RGB + Alpha result.
Processing order
- Input supplies an image stream with an existing alpha/key matte.
- Morph Operation selects Shrink, Grow, Opening or Closing.
- Shape and Radius define morphology geometry and scale.
- When enabled, Manual Iteration Control exposes Operator Radius and Repeat Operation.
- Process decides whether alpha, RGB or both participate in the output; Preview Alpha is diagnostic.
- An optional Effect Mask gates result contribution after morphology.
- Output remains a normal 2D image stream carrying the processed matte/channel state.
Tighten a matte after keying
DKeyer → AlphaMatteShrinkandGrow (Shrink, Alpha RGB Unaffected) → MatteControl/Despill → Merge.Foreground
DKeyer creates the source alpha; AlphaMatteShrinkandGrow changes only its geometry; despill/color cleanup remains a separate downstream task.
What is reshaped = alpha inside Input. How = Morph Operation/Shape/Radius/optional iterations. Where it contributes = Effect Mask. What is returned = Process → Output.
Parameters
Alpha Matte Shrink and Grow · Inspector reference
Read the Inspector causally: identify the defect and Morph Operation first, then kernel Shape/Radius, then Output/Preview, and only use Manual Iteration when needed. The source matte lives in the image Input; Effect Mask is separate coverage.
- Source
- Input image + existing alpha
- Defect
- fringe · missing edge · speckle · hole
- Morph
- Operation → Shape → Radius
- Advanced
- manual operator size + repeat
- Output
- Process + Preview Alpha
- Coverage
- Effect Mask optional
- QC
- hair · motion blur · temporal edge
Morphology · Operation · Shape · Radius
These three controls define morphology type and base scale. Choose Operation from defect polarity, Shape from edge geometry, and keep Radius at the minimum useful amount.
- Morph Operation
Morphology > Morph OperationChooses Shrink, Grow, Opening, or Closing. Shrink contracts the white/opaque region; Grow expands it. Opening helps remove small foreground speckles/protrusions, while Closing fills small background holes/cracks inside the matte.
Check / distinguish: Choose the operation from the defect polarity instead of simply selecting the strongest-looking mode.
- Shape
Morphology > ShapeChooses the morphology operator shape: Square, Circle, or Diamond. Circle is a safe organic starting point, Square trends toward rectilinear geometry, and Diamond responds differently around diagonals and corners.
Check / distinguish: Compare Shape on thin diagonals and hair before increasing Radius.
- Radius
Morphology > RadiusSets how strongly the normal Shrink/Grow/Open/Close pass reshapes the matte. Higher Radius values affect a wider boundary region and can quickly destroy hair, motion blur, semi-transparent edges, and thin geometry.
Check / distinguish: Start at zero and increase only until the specific defect is solved.
- Shrink = contract white/opaque region
Controls > Morph Operation > ShrinkShrink moves the boundary of a conventional white-foreground matte inward. This is geometry cleanup, not despill.
Check / distinguish: A/B the alpha, then inspect RGB edge color separately after disabling Preview Alpha.
- Grow = expand white/opaque region
Controls > Morph Operation > GrowGrow expands foreground coverage and can recover a slightly over-eroded key. It can also enlarge contamination if the upstream alpha is poor.
Check / distinguish: Raise Radius from 0 and watch for a heavy halo.
- Opening targets small white debris
Controls > Morph Operation > OpeningOpening is useful for small white speckles/foreground islands and protrusions. It is not a universal smoothing mode.
Check / distinguish: Find one isolated white defect and compare it with Shape/Radius held fixed.
- Closing targets small black holes
Controls > Morph Operation > ClosingClosing helps fill small black holes/cracks inside a foreground matte.
Check / distinguish: Compare one pinhole before/after; a large missing region should send you back to key/roto.
- Opening and Closing are not interchangeable
Controls > Morph OperationThey address opposite-polarity defects. Changing Radius/Shape at the same time hides the causal difference.
Check / distinguish: A/B Opening ↔ Closing with Shape/Radius unchanged.
- Circle is the default organic kernel
Controls > Shape > CircleBlackmagic describes Circle as even expansion around the key surface; at extreme Radius the geometry trends toward circular behavior.
Check / distinguish: Use Circle as a baseline on people/fabric, then compare other shapes.
- Square changes corner behavior
Controls > Shape > SquareSquare averages corners/angles differently and trends toward more rectangular geometry at large Radius.
Check / distinguish: Check rectilinear UI/architecture graphics separately from organic subjects.
- Diamond emphasizes a different angular kernel
Controls > Shape > DiamondDiamond provides the third documented operator geometry and behaves differently around diagonals/corners.
Check / distinguish: A/B a diagonal edge at a small Radius so you see shape rather than amount.
- Radius is morphology scale, not blur softness
Controls > RadiusRadius controls how far the morphology operator reshapes the matte; it is not feather/blur softness.
Check / distinguish: After setting Radius, inspect edge softness separately and use Blur/MatteControl when appropriate.
- Large Radius destroys fine structure
Controls > RadiusHair, lashes, branches, motion blur and semi-transparent texture can disappear before the broad silhouette looks obviously damaged.
Check / distinguish: Perform QC at 100 percent Viewer scale and in playback.
- Fix the upstream key before heavy morphology
Workflow boundaryIf cleanup requires a large Radius, the problem is often the upstream key/roto rather than insufficient morphology.
Check / distinguish: Bypass the node and repair selection/garbage matte/roto before adding more morphology.
Output · Process · Preview Alpha
Process defines channel behavior of the result; Preview Alpha is a diagnostic view rather than another output socket.
- Output / Process
Output > Output / ProcessSelects RGB (Blank Alpha), Alpha (RGB Unaffected), or RGB + Alpha. Alpha (RGB Unaffected) is the normal matte-engineering choice. RGB + Alpha changes visible image data as well as alpha, while RGB (Blank Alpha) is a specialized technical output mode.
Check / distinguish: If the effect appears to be damaging the image, verify Process before changing morphology.
- Output / Preview Alpha
Output > Output / Preview AlphaShows the alpha that will be output so matte defects can be judged directly. Use it to inspect holes, speckles, edge thickness, and thin detail, then return to the final composite for delivery judgement.
Check / distinguish: Always inspect the repaired edge over both bright and dark backgrounds after leaving Preview Alpha.
- Alpha (RGB Unaffected) is the matte-engineering mode
Output > Process > Alpha (RGB Unaffected)This mode changes alpha geometry while preserving RGB and is therefore the normal starting point for key/roto cleanup.
Check / distinguish: A/B Process with Morph Operation fixed and verify RGB remains stable.
- RGB (Blank Alpha) is a special routing mode
Output > Process > RGB (Blank Alpha)This mode outputs RGB with blank alpha and is not the default choice for ordinary matte refinement.
Check / distinguish: Use it only when downstream explicitly needs RGB without alpha.
- RGB + Alpha changes more than coverage
Output > Process > RGB + AlphaThis mode includes RGB as well as alpha, so the result should not be judged as alpha geometry alone.
Check / distinguish: Compare it with Alpha (RGB Unaffected) before production use.
- Preview Alpha is a Viewer diagnostic
Output > Preview AlphaPreview Alpha shows alpha for diagnosis; it does not create another mask output socket or replace composite QC.
Check / distinguish: Disable preview after tuning and inspect the edge over bright/dark backgrounds.
- Good alpha can still have bad RGB spill
Output + downstream colorMorphology can fix coverage while green/blue fringe color remains in RGB and still needs despill/color work.
Check / distinguish: Inspect RGB edges after Alpha-only cleanup; do not increase Shrink to solve a color problem.
Advanced Options · Manual Iteration · Operator Radius · Repeat Operation
Manual Iteration enables a conditional advanced path. Operator Radius defines operator size and Repeat Operation repeats it to create a more extreme adjustment.
- Advanced Options / Manual Iteration Control
Advanced Options > Advanced Options / Manual Iteration ControlEnables direct control over how the morphology operator is applied. When enabled, Operator Radius and Repeat Operation become the advanced controls for operator size and repeated application.
Check / distinguish: Do not enable manual iteration by default; first prove the normal Radius cannot solve the problem cleanly.
- Advanced Options / Operator Radius
Advanced Options > Advanced Options / Operator RadiusConditional operator-size control shown when Manual Iteration Control is enabled. Blackmagic describes this as the size of the operator. It works together with Repeat Operation and should not be treated as a second independent blur radius.
Check / distinguish: Keep the operator small and inspect fine detail at 100 percent.
- Advanced Options / Repeat Operation
Advanced Options > Advanced Options / Repeat OperationConditional repetition control that makes the Operator Radius effect more extreme. Repeated morphology accumulates geometric change and can rapidly damage hair, motion blur, and fine semi-transparent boundaries.
Check / distinguish: Increase repetitions one step at a time and inspect playback, not only a still frame.
- Manual Iteration is conditional
Advanced Options > Manual Iteration ControlUntil the checkbox is enabled, Operator Radius/Repeat Operation are not the active workflow. Use the manual path only deliberately.
Check / distinguish: Prove the limitation of the normal Radius first, then enable manual mode.
- Operator Radius controls operator size
Advanced Options > Operator RadiusResolve 21 explicitly describes Operator Radius as the slider controlling operator size.
Check / distinguish: Change it with Repeat Operation fixed so the two factors remain separable.
- Repeat Operation accumulates morphology
Advanced Options > Repeat OperationBlackmagic describes this slider as repeating the operation to create a more extreme adjustment from Operator Radius.
Check / distinguish: Increase repeats one at a time and watch cumulative silhouette damage.
- Manual controls are not a quality switch
Advanced OptionsManual Iteration Control does not mean automatically higher quality; it only exposes direct control over operator application.
Check / distinguish: Compare normal Radius and the manual path on the same defect with the same target.
- Iteration can amplify temporal chatter
Advanced Options > Repeat OperationRepeated morphology can amplify frame-to-frame instability already present in the upstream key/roto.
Check / distinguish: Review playback and frame-step a moving edge.
Guide › Connections · Connections and data types
Trace the input data, processing and compositing path.
- Effect Mask is coverage-only
Flow > Effect MaskThe blue mask gates result contribution. It is not the alpha channel processed by Shrink/Grow.
Check / distinguish: Disconnect Effect Mask: the morphology inside the region should remain the same while spatial coverage changes.
- Input alpha is the actual morphology source
Flow > InputFor morphology to have meaningful data, alpha/key coverage must arrive inside the main image stream.
Check / distinguish: View the source Alpha channel before the node; if it is empty/wrong, repair upstream.
- Output remains an image stream
Flow > OutputEven with Preview Alpha enabled, the node has a normal 2D image Output rather than a separate blue mask socket.
Check / distinguish: Connect Output to a normal downstream image input.
Guide › Result checks · Result checks
Compare source and output, checking the relevant channels and multiple frames.
- Judge edge over two contrasting backgrounds
Viewer QCOne background can hide halo or erosion, especially when edge color is similar to the background.
Check / distinguish: Check both bright and dark backgrounds before final approval.
- Hair and motion blur are stress tests
Viewer QCFine semi-transparent structure reveals over-morphing before the broad silhouette does.
Check / distinguish: Choose a frame with hair/motion blur and keep it as a mandatory QC frame.
- Playback matters
Viewer QC > temporalA matte can look clean on one frame yet chatter in motion because morphology amplifies upstream temporal instability.
Check / distinguish: Review several loops at real/half speed and frame-step the problem area.
- Do not use morphology as despill
Workflow boundary > colorGeometry and edge color are separate problems. Extra Shrink can hide spill only by sacrificing silhouette.
Check / distinguish: After geometry cleanup move to despill/color correction rather than more erosion.
- Compare ErodeDilate for channel/directional needs
Workflow boundary > ErodeDilateAlphaMatteShrinkandGrow provides the dedicated Resolve FX Key controls; ErodeDilate is useful when explicit channel selection/filter shapes/X-Y morphology behavior is required.
Check / distinguish: Choose the tool from the required control surface rather than similar naming.
Before adjusting the node
- The source matte lives in Input, not Effect Mask.
- Shrink/Grow move the boundary; Opening/Closing address small defects with opposite polarity.
- Circle is a safe starting point, but Shape should be compared on diagonals and corners.
- Increase Radius only to the minimum useful result and inspect hair/motion blur at 100 percent.
- For matte engineering, Process = Alpha (RGB Unaffected) is usually the correct choice; RGB spill is a separate repair.
- Preview Alpha is diagnostic. Judge the final edge in the actual composite and in motion.
- Operator Radius/Repeat Operation belong to the Manual Iteration path and should not be used automatically.
- Opening/Closing do not reconstruct large missing regions; return to upstream key/roto for major defects.
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
Tighten a contaminated edge with minimal Shrink
Separate matte geometry from despill: Shrink changes the alpha boundary but does not repair edge color contamination by itself.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Alpha Matte Shrink and Grow semantics cross-checked against Resolve 21 Resolve FX Key documentation and the captured current Fusion Inspector · DaVinci Resolve Studio; Alpha Matte Shrink and Grow is documented as Studio Version Only · Cross-platform editorial reference; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 144 frames · Fusion 2D RGBA image pipeline with an existing alpha/key matte
- MediaIn with alpha/key
- AlphaMatteShrinkandGrow
- MediaOut
- Rectangle mask for the local-coverage exercise
Source material
- SRC
RGBA with genuine Alpha: a soft boundary, small white specks outside and black holes inside the matte. Inspect RGB and Alpha separately.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 144 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— KEYED / RGBA SOURCE · MediaInAMSG— ALPHA MATTE SHRINK/GROW · AlphaMatteShrinkandGrowOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
KEYED / RGBA SOURCE (SRC)Output | ALPHA MATTE SHRINK/GROW (AMSG)Input | image |
ALPHA MATTE SHRINK/GROW (AMSG)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls > Output / Process
"Alpha (RGB Unaffected)"Keep RGB untouched while evaluating matte geometry.
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls > Output / Preview Alpha
trueInspect the actual alpha while choosing the morphology amount.
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls / Morph Operation
"Shrink"Tighten a conventional white-foreground alpha around the subject.
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls / Shape
"Circle"Use the default organic kernel as a neutral starting point.
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls / Radius
0Establish a no-change baseline before increasing morphology.
- ALPHA MATTE SHRINK/GROW (AMSG) / Controls / Radius
1Use a deliberately small illustrative step; it is not a universal preset.
Reproduce the example
- Build SOURCE → AlphaMatteShrinkandGrow → OUTPUT with no Effect Mask.
First prove morphology on the alpha carried by the main Input without spatial gating.
Check: One image cable enters the node and the blue Effect Mask remains unconnected.
- Enable Preview Alpha, choose Alpha (RGB Unaffected), Shrink and Circle, then compare Radius 0 with a small Radius.
This isolates movement of the matte boundary from RGB or background-composite changes.
Check: The white region contracts slightly while hair and motion-blurred detail are still preserved.
- Disable Preview Alpha and inspect the edge over a contrasting background; correct spill separately if needed.
Correct alpha geometry does not guarantee correct edge color.
Check: There is no obvious silhouette loss and residual green/blue contamination is not hidden by additional Shrink.
Expected result
- OUTPUT (OUT) · frame 72
The matte tightens slightly at the edge without obvious loss of fine detail.
Alpha: Alpha is minimally contracted while RGB remains unchanged because Process is Alpha (RGB Unaffected).
When the result differs
- Hair disappears quickly.
Cause: Radius is too large for the fine detail.
Correction: Move back toward zero and target only the actual fringe problem.
Files for the example
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Resolve FX Key / Alpha Matte Shrink and Grow
Resolve FX Key > Alpha Matte Shrink and Grow: Morph Operation, Shape, Radius, Process, Preview Alpha, Manual Iteration Control, Operator Radius and Repeat Operation.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion fundamentals used by the practice graphs: MediaIn/MediaOut and mask connections.
Separate Opening from Closing on a damaged matte
Understand defect polarity: Opening removes small white islands while Closing fills small black holes.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Alpha Matte Shrink and Grow semantics cross-checked against Resolve 21 Resolve FX Key documentation and the captured current Fusion Inspector · DaVinci Resolve Studio; Alpha Matte Shrink and Grow is documented as Studio Version Only · Cross-platform editorial reference; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 144 frames · Fusion 2D RGBA image pipeline with an existing alpha/key matte
- MediaIn with alpha/key
- AlphaMatteShrinkandGrow
- MediaOut
- Rectangle mask for the local-coverage exercise
Source material
- SRC
RGBA with genuine Alpha: a soft boundary, small white specks outside and black holes inside the matte. Inspect RGB and Alpha separately.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 144 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MATTE SOURCE · MediaInAMSG— MORPHOLOGY · AlphaMatteShrinkandGrowOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
MATTE SOURCE (SRC)Output | MORPHOLOGY (AMSG)Input | image |
MORPHOLOGY (AMSG)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- MORPHOLOGY (AMSG) / Controls > Output / Process
"Alpha (RGB Unaffected)"Keep the comparison restricted to matte geometry.
- MORPHOLOGY (AMSG) / Controls > Output / Preview Alpha
trueView white speckles and black holes directly.
- MORPHOLOGY (AMSG) / Controls / Shape
"Circle"Use one fixed kernel shape while comparing operations.
- MORPHOLOGY (AMSG) / Controls / Morph Operation
"Opening"Target small isolated white foreground noise.
- MORPHOLOGY (AMSG) / Controls / Morph Operation
"Closing"Target small black holes inside foreground coverage.
- MORPHOLOGY (AMSG) / Controls / Radius
1Keep the illustrative radius modest so operation polarity is easier to observe.
Reproduce the example
- Enable Preview Alpha and identify one white speckle outside the subject and one black pinhole inside it.
Opening and Closing solve defects with opposite polarity.
Check: Both defects are visible before morphology.
- Choose Opening and inspect the white speckle without changing Shape or Radius.
Opening should be judged as cleanup of small foreground islands rather than a universal hole fixer.
Check: Small white debris is reduced before the main silhouette changes significantly.
- Change only Morph Operation to Closing and compare the internal black pinhole.
Holding Radius fixed exposes the difference in operator semantics.
Check: A small black hole closes, but a large missing region should not be expected to reconstruct magically.
Expected result
- OUTPUT (OUT) · frame 72
Opening and Closing produce distinct cleanup behavior with the same Shape and Radius.
Alpha: Opening reduces small white islands; Closing fills small black holes.
When the result differs
- The operation changes the whole subject more than the defect.
Cause: Radius is too large or the upstream matte is fundamentally wrong.
Correction: Reduce Radius and fix the key/roto upstream instead of adding more morphology.
Files for the example
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Resolve FX Key / Alpha Matte Shrink and Grow
Resolve FX Key > Alpha Matte Shrink and Grow: Morph Operation, Shape, Radius, Process, Preview Alpha, Manual Iteration Control, Operator Radius and Repeat Operation.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion fundamentals used by the practice graphs: MediaIn/MediaOut and mask connections.
Local morphology with Manual Iteration Control
Separate two independent concepts: Effect Mask controls coverage while Manual Iteration Control changes how the operator is applied inside that coverage.
Starting conditions
DaVinci Resolve / Fusion Target: Resolve 21/21.1; Alpha Matte Shrink and Grow semantics cross-checked against Resolve 21 Resolve FX Key documentation and the captured current Fusion Inspector · DaVinci Resolve Studio; Alpha Matte Shrink and Grow is documented as Studio Version Only · Cross-platform editorial reference; live Resolve execution not run in this package
1920 × 1080 · 24 fps · 144 frames · Fusion 2D RGBA image pipeline with an existing alpha/key matte
- MediaIn with alpha/key
- AlphaMatteShrinkandGrow
- MediaOut
- Rectangle mask for the local-coverage exercise
Source material
- SRC
RGBA with genuine Alpha: a soft boundary, small white specks outside and black holes inside the matte. Inspect RGB and Alpha separately. The bundled PNG tests shape and Alpha on a still. For the temporal-qc step separately supply a moving RGBA clip with a soft edge: the PNG cannot reveal temporal popping.
Download the test source or prepare your own matching the description. Import it into the Media Pool and drag it into Fusion as SRC. For a clip provide 144 frames at 24 fps. Static artwork may be held across the range; the input used to test motion, flicker or frame history must contain actual footage.
Nodes and connections
SRC— MATTE SOURCE · MediaInMASK— LOCAL COVERAGE · RectangleMaskAMSG— LOCAL MORPHOLOGY · AlphaMatteShrinkandGrowOUT— OUTPUT · MediaOut
| Source | Destination | Data |
|---|---|---|
MATTE SOURCE (SRC)Output | LOCAL MORPHOLOGY (AMSG)Input | image |
LOCAL COVERAGE (MASK)Mask | LOCAL MORPHOLOGY (AMSG)EffectMask | mask |
LOCAL MORPHOLOGY (AMSG)Output | OUTPUT (OUT)Input | image |
Graph output: OUTPUT (OUT)
Parameter values
- LOCAL MORPHOLOGY (AMSG) / Controls > Output / Process
"Alpha (RGB Unaffected)"Keep RGB stable while evaluating local matte repair.
- LOCAL MORPHOLOGY (AMSG) / Controls > Output / Preview Alpha
trueInspect the matte and mask transition directly.
- LOCAL MORPHOLOGY (AMSG) / Controls / Morph Operation
"Closing"Use a hole-filling operation for the local test area.
- LOCAL MORPHOLOGY (AMSG) / Controls / Shape
"Circle"Keep shape neutral while testing manual iteration.
- LOCAL MORPHOLOGY (AMSG) / Controls > Advanced Options / Manual Iteration Control
trueExpose direct operator application controls.
- LOCAL MORPHOLOGY (AMSG) / Controls > Advanced Options / Operator Radius
1Use a small illustrative operator size rather than an aggressive value.
- LOCAL MORPHOLOGY (AMSG) / Controls > Advanced Options / Repeat Operation
2Use a low repeat count to make accumulation visible without presenting it as a preset.
Reproduce the example
- Connect Rectangle.Mask to Effect Mask and place the coverage only over the problematic part of the matte.
Effect Mask should localize contribution rather than become the source matte for morphology.
Check: Outside the Rectangle the original alpha remains; inside it the Closing result is visible.
- Enable Manual Iteration Control and start with a small Operator Radius and low Repeat Operation.
Blackmagic documents these controls as direct control over operator size and repetition.
Check: Repetition strengthens morphology only inside the masked region while outside coverage remains unchanged.
- Play the shot and reduce Repeat/Operator Radius if hair, motion blur, or fine detail begins to pop or disappear.
Repeated morphology accumulates geometric damage and can look acceptable on a still while failing temporally.
Check: The local repair remains stable across frames and the Effect Mask boundary does not create an obvious discontinuity.
Expected result
- OUTPUT (OUT) · frame 72
The manual operator strengthens a local repair inside the mask without globally damaging the matte.
Alpha: Source alpha arrives through Input; Effect Mask only gates contribution of the processed alpha.
When the result differs
- The whole frame changes even though a mask is connected.
Cause: The mask is connected to the wrong port or its coverage is incorrect.
Correction: Verify the blue Effect Mask connection and inspect mask coverage separately.
- Fine detail disappears after a few repeats.
Cause: Operator Radius/Repeat Operation are too aggressive.
Correction: Reduce operator size/repeat and repair the upstream matte if the defect requires heavy morphology.
Files for the example
References
- Blackmagic Design — DaVinci Resolve 21 Reference Manual: Resolve FX Key / Alpha Matte Shrink and Grow
Resolve FX Key > Alpha Matte Shrink and Grow: Morph Operation, Shape, Radius, Process, Preview Alpha, Manual Iteration Control, Operator Radius and Repeat Operation.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion fundamentals used by the practice graphs: MediaIn/MediaOut and mask connections.
Other outlines from the article
Tighten a keyed fringe
Use a small Shrink in Alpha (RGB Unaffected), then handle color spill separately.
- MediaIn
- DeltaKeyer
- AlphaMatteShrinkandGrow
- MatteControl
- Merge
Fill small matte pinholes
Use Closing with Circle and the smallest Radius that closes the target holes.
- Key/Roto result
- AlphaMatteShrinkandGrow
- Merge
Remove white matte speckles
Use Opening for isolated foreground debris without using morphology to hide a bad upstream key.
- Key/Roto result
- AlphaMatteShrinkandGrow
- MatteControl
Local matte repair
Effect Mask gates the contribution while source alpha still comes through the main Input.
- MediaIn with alpha
- AlphaMatteShrinkandGrow
- MediaOut
- Rectangle → Effect Mask
Mistakes
- Trying to pull a key from scratch instead of supplying an existing alpha
- Feeding a matte into Effect Mask and expecting it to become the morphology source
- Using Grow to fix green/blue spill even though morphology does not repair contaminated RGB edge color
- Using a large Radius on hair, motion blur, or thin transparent detail
- Confusing Opening with Closing: the former targets small white islands, the latter small black holes
- Leaving the wrong Process mode active and blaming Morph Operation
- Tuning only in Preview Alpha and never checking the final composite
- Repeating the manual operator without checking cumulative detail loss
- Judging a single still and missing temporal chatter on a moving key/roto
- Using morphology to compensate for a fundamentally bad upstream key
Tips
- Start with Circle and the smallest useful Radius on organic mattes.
- Match the operation to the defect: fringe → Shrink, missing edge → Grow, white speckle → Opening, black holes → Closing.
- Process = Alpha (RGB Unaffected) is the normal choice for matte geometry without RGB modification.
- Use Preview Alpha as a diagnostic view but make the final decision in the composite.
- Enable Manual Iteration Control only after the normal Radius has proven insufficient.
- Effect Mask is coverage; the morphology source matte lives in the main Input.
- For hair and motion blur, prefer several conservative decisions over one aggressive pass.
- Compare ErodeDilate when you need channel-selective or directional X/Y morphology behavior.
- After shrink/grow, re-check despill and premultiplication around semi-transparent edge RGB.
Workflow order
- Confirm that the upstream key/roto already produces a meaningful alpha and that the problem is geometric rather than color spill.
- Use Process = Alpha (RGB Unaffected), enable Preview Alpha, and inspect the matte around 100 percent Viewer scale.
- Choose Shrink/Grow for boundary fit, Opening for white debris, or Closing for small black holes.
- Start with Circle and Radius = 0, then raise Radius only as far as the actual defect requires.
- Compare Shape if corners or diagonals deform more than the main silhouette.
- If the normal Radius is insufficient, enable Manual Iteration Control and judge Operator Radius and Repeat Operation separately.
- Use Effect Mask only when the morphology contribution must be localized; it is not the source alpha.
- Disable Preview Alpha and inspect the composite over bright/dark backgrounds and in motion, especially hair, motion blur, and thin geometry.
- Treat despill or contaminated edge RGB with dedicated key/color tools rather than further morphology.
