Appearance
Isolate Polygon
Overview
The Isolate Polygon node selects a single polygon from a list based on its area or detection probability. It is typically used to extract the most relevant detection for further processing.
Use Isolate Polygon when:
- You have multiple detections and only need the largest one.
- You want to find the object with the highest confidence score.
💡 Tip
Selecting by "Area" is useful for size-based filtering, while "Probability" helps in finding the most certain AI detection.
Inputs
| Name | Type | Description |
|---|---|---|
| input | list[polygon] | Receives a list of polygons. |
Outputs
| Name | Type | Description |
|---|---|---|
| output | polygon | Returns a single polygon based on the configuration. |
Parameters
| Parameter | Default | Valid values | Tunable |
|---|---|---|---|
| Polygon attribute | area | area, probability | ❌ |
| Value | max | min, max | ❌ |
Polygon attribute
The attribute used to compare polygons. "Area" uses the physical size, while "Probability" uses the AI confidence score.
Value
Whether to pick the polygon with the lowest (min) or highest (max) value of the selected attribute.
Example
Isolate Largest Detection
A node outputs several detected objects. You only want to analyze the largest one to ensure it's the main subject.
Configuration:
- Polygon attribute:
area - Value:
max
Result: The node returns the polygon with the largest surface area from the input list.
Related links
Reference:
- Polygon Threshold — filters a list of polygons based on spatial properties
- Get Item from List — retrieves a list item by its index