Get ROI
This function block extracts a region of interest (ROI) from a given image based on specified rectangle coordinates. It allows users to isolate significant parts of an image for further analysis or processing.
π₯ Inputs
Image Any
The input image from which you want to extract a region of interest.
Rectangle
The coordinates defining the rectangle for the region of interest. It should specify two points in the format [(x1, y1), (x2, y2)]
.
π€ Outputs
Image Any
The output image containing only the extracted region of interest.
π¨ Features
Flexible ROI Definition
Users can specify any rectangular ROI by providing the coordinates.
Boundary Handling
Automatically adjusts the coordinates to ensure they stay within the image dimensions to prevent errors.
π Usage Instructions
Input Image: Connect the image you wish to extract a region from to the
Image Any
input.Define Rectangle: Set the coordinates for the rectangle in which you want to extract the ROI. These coordinates must be specified in the format
[(x1, y1), (x2, y2)]
.Evaluate: Once configured, run the block to extract the designated ROI.
π Evaluation
Upon evaluation, this function block outputs the specified region from the input image based on the rectangle coordinates provided.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated