Appearance
Move Polygon
Overview â
The Move Polygon node moves a polygon by adding horizontal and vertical offsets to every point. All coordinates are normalized (0 â 1), and each moved point is clipped so it never leaves the image boundaries.
Use Move Polygon when:
- You need to shift a detected region based on a dynamic offset (e.g. a calculated distance or sensor value).
đĄ Tip
Negative offsets move the polygon left (horizontal) or up (vertical). The node clamps each point individually, so a polygon near the edge may change shape rather than disappear.
Inputs â
| Name | Type | Description |
|---|---|---|
| polygon | polygon | The polygon to move. |
| horizontal | number | Offset along the x-axis (normalized). Positive moves right, negative moves left. |
| vertical | number | Offset along the y-axis (normalized). Positive moves down, negative moves up. |
â ī¸ Warning
All three inputs are required.
Outputs â
| Name | Type | Description |
|---|---|---|
| moved_polygon | polygon | The translated polygon, with every point clipped to 0 â 1. |
âšī¸ Note
Point and polygon probability values are preserved through the polygon move.
Parameters â
This node has no configurable parameters.
Example â
Shifting a detection region â
A model detects an object and outputs a bounding polygon. A downstream calculation determines that the region of interest is offset 0.20 to the right and 0.25 downward from the detection. The Move Polygon node applies these offsets to reposition the polygon.
Related links â
Reference:
- Resize Polygons â scales a polygon around its center
- Polygon Distance â computes distance between two polygon centers
- Polygon ROI â filters predictions by region of interest