Get ROI
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
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.
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)]
.
Image Any
The output image containing only the extracted region of interest.
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.
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.
Upon evaluation, this function block outputs the specified region from the input image based on the rectangle coordinates provided.