Nodes/Parametric Studio/Trimap Mask Feather
ComfyUI Node

Trimap Mask Feather

Builds a trimap by erosion/dilation of a rough mask and diffuses alpha across the unknown band. Not VitMatte: no model, and the image is not used.

By parametricparadigm·Created 4 days ago·Updated about 3 hours ago· 1
Trimap Mask Feather
  • rough_mask
  • alpha_mask
◄fg_radius5►
◄bg_radius5►
◄iterations50►
◄sigma0.50►
◄blur_radius1►
CategoryParametric/Image

Inputs (6)

NameTypeDefaultDescription
rough_maskMASKRough mask.
fg_radiusoptINT50–64Fg radius. From 0 to 64. Default 5.
bg_radiusoptINT50–64Bg radius. From 0 to 64. Default 5.
iterationsoptINT501–500Iterations. From 1 to 500. Default 50.
sigmaoptFLOAT0.500.01–1Sigma. From 0.01 to 1. Default 0.5.
blur_radiusoptINT10–32Blur radius. From 0 to 32. Default 1.

Outputs (1)

NameTypeDescription
alpha_maskMASK—