Appearance
Polygon Crop
Overview
This node crops an input image to the bounding box of a specified polygon. It extracts a specific region defined by geometric coordinates for further processing.
Use Polygon Crop when:
- You need to isolate an object within a complex shape.
- You want to reduce image size to a specific area of interest defined by a polygon.
⚠️ Warning
The resulting crop is always rectangular, corresponding to the smallest bounding box that contains the entire polygon.
Inputs
| Name | Type | Description |
|---|---|---|
| image | image | The original image to be cropped. |
| polygon | polygon | The polygon defining the crop region. |
Outputs
| Name | Type | Description |
|---|---|---|
| cropped_image | image | The resulting image after cropping. |
Parameters
This node does not have any configuration parameters.
Example
Isolate a detected object
A system detects a PCB desk and generates a polygon around it. This node crops the full frame to just the PCB desk's area.
Configuration:
- This node has no internal configuration parameters.
Result: The output image contains only the PCB desk.
Related links
Reference:
- Crop Image — basic rectangular cropping based on the node configuration
- Apply Mask — masking image areas