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.
Trimap Mask Feather
- rough_mask
- alpha_mask
◄fg_radius5►
◄bg_radius5►
◄iterations50►
◄sigma0.50►
◄blur_radius1►
CategoryParametric/Image
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| rough_mask | MASK | Rough mask. | |
| fg_radiusopt | INT | 50–64 | Fg radius. From 0 to 64. Default 5. |
| bg_radiusopt | INT | 50–64 | Bg radius. From 0 to 64. Default 5. |
| iterationsopt | INT | 501–500 | Iterations. From 1 to 500. Default 50. |
| sigmaopt | FLOAT | 0.500.01–1 | Sigma. From 0.01 to 1. Default 0.5. |
| blur_radiusopt | INT | 10–32 | Blur radius. From 0 to 32. Default 1. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| alpha_mask | MASK | — |