Image ROI
This function block allows users to define a region of interest (ROI) within an image. It utilizes sliders to enable cropping of the input image, providing a focused area for further processing.
π₯ Inputs
Image Any
The input image from which you want to extract a specific region.
π€ Outputs
Image Any
This output returns the cropped region of interest from the input image.
Rectangle
The coordinates of the defined ROI, provided in a shape format.
πΉοΈ Controls
Input Image Size (H, W)
This label displays the height and width of the input image for reference.
Width
A horizontal slider that allows you to adjust the width of the ROI to be cropped from the input image.
Height
A horizontal slider that allows you to adjust the height of the ROI to be cropped from the input image.
π¨ Features
Dynamic ROI Definition
Users can interactively define the ROI in the input image by adjusting the sliders to their desired dimensions.
Real-time Feedback
As the sizes of the ROI are adjusted, the updated dimensions reflect immediately in the label.
π Usage Instructions
Input Image Connection: Connect any image to the
Image Any
input.Adjust Width and Height: Use the
Width
andHeight
sliders to select the desired ROI dimensions from the input image.Evaluate: Run the block to see the cropped region as output, along with the rectangle coordinates of the defined area.
π Evaluation
Upon execution, this block outputs the cropped image based on the defined ROI set by the sliders.
π‘ Tips and Tricks
π οΈ Troubleshooting
Last updated
Was this helpful?