Separate Masks (UTK)
Separates a mask into multiple masks based on connected components. The node identifies connected components (continuous regions) in the input mask and creates separate masks for each component that meets the size thresholds. Components are sorted by their horizontal position (left to right). Modes: - **area**: Preserves the exact shape of each component - **box**: Creates rectangular bounding boxes around each component - **convex_polygons**: Creates simplified convex polygon approximations Size thresholds filter out small noise or unwanted components. Components smaller than the specified width/height are ignored. Useful for: - Separating multiple objects in a single mask - Filtering components by size - Creating individual masks for batch processing - Object isolation and analysis
- mask
- masks
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | Input mask to separate into components | |
| size_threshold_width | INT | 2560–4096 | Minimum width for components to be included |
| size_threshold_height | INT | 2560–4096 | Minimum height for components to be included |
| mode | COMBO | area | Method for creating separated masks |
| max_poly_points | INT | 83–32 | Maximum points for polygon approximation (convex_polygons mode) |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| masks | MASK | — |