Mask Refine
Refines a mask with erode, dilate, feather, threshold, and morphological operations.
Mask Refine is the primary tool for cleaning up and adjusting masks. Erode shrinks the mask (positive values) or dilates it (negative values). Feather applies a Gaussian blur for soft edges. Threshold binarizes the mask.
The morphology section offers advanced operations: Open (removes small noise), Close (fills small holes), Gradient (extracts edges), Top Hat (bright detail), and Black Hat (dark detail).
Parameters
Section titled “Parameters”Pins
Mask
Binarize the mask before refinement
Binarization cutoff (pixels >= become white)
Positive: erode (shrink). Negative: dilate (expand)
Gaussian blur radius on mask edges
Invert the mask
Morphology
Additional morphological op (Open/Close/Gradient/Top Hat/Black Hat)
Structuring element shape
Kernel radius in pixels
How many times to repeat the operation
Usage Tips
Section titled “Usage Tips”- A small erode (1–2px) removes fringe pixels at mask edges.
- Negative erode values dilate (expand) the mask, which is useful for extending selections.
- Use Open to clean up noisy masks without changing the overall shape.
- Close fills small holes in masks and works well for patching gaps in selections.
- Use Feather to soften hard mask edges into a smooth falloff.