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