Separate
Detects all disconnected foreground regions in an image and outputs each one as a clean cutout in a batch, cropped to its bounding box with the other objects’ pixels erased so every frame contains exactly one object. Separate works on a single image and does not accept a batch on its input.
| Pin | Type | Description |
|---|---|---|
| Image | Image (required) | The source image to analyze |
| Mask | Mask | Optional mask defining background (white = background, black = foreground); when connected, overrides the Background Mode parameter |
| Batch | Batch | One frame per detected foreground object, named object_01, object_02, … in the chosen sort order |
Parameters
Section titled “Parameters”Pins
Detection
How background is detected. Alpha: transparent pixels are background. Corner Color: pixels matching a corner's color. Custom Color
Which corner pixel to sample as the background reference color
Background reference color
Alpha mode: pixels with alpha above this are content. Color modes: maximum color distance from the reference color to still count as background (higher tolerates anti-aliasing halos / JPEG fringing)
Expand the foreground mask by this many pixels before detecting regions, to merge objects that are nearly - but not quite - touching (e.g. a leaf with a thin transparent gap through it)
Filter
Regions smaller than this area are ignored (dust, compression artefacts)
Hard cap on output frames. 0 = unlimited
Output
Extra pixels kept around each cropped bounding box
Order of the output frames. Reading Order scans left-to-right, top-to-bottom like a grid
Usage Tips
Section titled “Usage Tips”- Wire the Batch output into Scatter to use each detected object as a stamp, or into Export Batch to save each one as a separately named file.
- Use Merge Gap to close small transparent gaps within a single object before detection. A leaf with a thin transparent seam through it becomes one cutout instead of two.
- Min Area filters out dust and JPEG compression artifacts that would otherwise produce extra frames. Raise it until only real objects remain.
- Padding adds breathing room around each cutout. Useful when downstream nodes need a few pixels of context around the edge.
- Max Objects caps the output count when you only need the N largest or leftmost objects from a large image.
- Reading Order sorts objects as a human would read text: left-to-right, top-to-bottom across rows.