Grow Mask With Blur
GrowMaskWithBlur# GrowMaskWithBlur - mask: Input mask or mask batch - expand: Expand or contract mask or mask batch by a given amount - incremental_expandrate: increase expand rate by a given amount per frame - tapered_corners: use tapered corners - flip_input: flip input mask - blur_radius: value higher than 0 will blur the mask - lerp_alpha: alpha value for interpolation between frames - decay_factor: decay value for interpolation between frames - fill_holes: fill holes in the mask (slow)
Example
{
"class_type": "GrowMaskWithBlur",
"inputs": {
"mask": [
"node_id",
0
],
"expand": 0,
"incremental_expandrate": 0,
"tapered_corners": true,
"flip_input": false,
"blur_radius": 0,
"lerp_alpha": 1,
"decay_factor": 1
}
}This example shows required inputs only. Connection values like ["node_id", 0] should reference actual node IDs from your workflow.
Inputs
| Name | Type | Status | Constraints | Default |
|---|---|---|---|---|
mask | MASK | required | - | - |
expand | INT | required | min: -16384, max: 16384, step: 1 | 0 |
incremental_expandrate | FLOAT | required | min: 0, max: 100, step: 0.1 | 0 |
tapered_corners | BOOLEAN | required | - | true |
flip_input | BOOLEAN | required | - | false |
blur_radius | FLOAT | required | min: 0, max: 100, step: 0.1 | 0 |
lerp_alpha | FLOAT | required | min: 0, max: 1, step: 0.01 | 1 |
decay_factor | FLOAT | required | min: 0, max: 1, step: 0.01 | 1 |
fill_holes | BOOLEAN | optional | - | false |
Outputs
| Index | Name | Type | Is List | Connection Reference |
|---|---|---|---|---|
0 | mask | MASK | No | ["{node_id}", 0] |
1 | mask_inverted | MASK | No | ["{node_id}", 1] |
How to connect to these outputs
To connect another node's input to an output from this node, use the connection reference format:
["node_id", output_index]Where node_id is the ID of this GrowMaskWithBlur node in your workflow, and output_index is the index from the table above.
Example
If this node has ID "5" in your workflow:
mask (MASK):["5", 0]mask_inverted (MASK):["5", 1]