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?