Comment on page
Image ROI Center
The
Image ROI Center
node in AugeLab Studio allows you to define a region of interest (ROI) by cropping an image based on a specified center coordinate, width, and height. It enables you to extract a rectangular region around the center of an image for further processing or analysis.The
Image ROI Center
node takes an image, center coordinate, width, and height as input and provides the following outputs:- 1.ROI Image: The region of interest (ROI) extracted from the input image. The output is a cropped image representing the specified ROI.
- 2.ROI Coordinates: The coordinates of the ROI within the input image. The ROI coordinates are provided as a tuple with the format
((y_min, y_max), (x_min, x_max))
, where(y_min, y_max)
represents the vertical range and(x_min, x_max)
represents the horizontal range of the ROI.
- Node Title: Image ROI Center
- Node ID: OP_NODE_ROI_CENTER
The
Image ROI Center
node has the following input sockets:- 1.Image: The input image from which the ROI will be extracted.
- 2.Center: The center coordinate of the ROI within the image. The center coordinate should be provided as a tuple
(x, y)
representing the(x, y)
position of the center. - 3.Width: The width of the ROI. This value determines the horizontal size of the ROI.
- 4.Height: The height of the ROI. This value determines the vertical size of the ROI.
The
Image ROI Center
node has the following output sockets:- 1.ROI Image: The region of interest (ROI) extracted from the input image. The output is a cropped image representing the specified ROI.
- 2.ROI Coordinates: The coordinates of the ROI within the input image. The ROI coordinates are provided as a tuple with the format
((y_min, y_max), (x_min, x_max))
, where(y_min, y_max)
represents the vertical range and(x_min, x_max)
represents the horizontal range of the ROI.
- 1.Drag and drop the
Image ROI Center
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image from which the ROI will be extracted to the Image input socket of the
Image ROI Center
node. - 3.Optionally, connect the center coordinate, width, and height inputs to specify the desired ROI. If not connected, the default values will be used (centered ROI with the same dimensions as the input image).
- 4.Run the pipeline.
- 5.The
Image ROI Center
node will crop the input image based on the specified center coordinate, width, and height. - 6.The cropped ROI image will be outputted from the ROI Image output socket of the
Image ROI Center
node. - 7.The coordinates of the ROI within the input image will be outputted from the ROI Coordinates output socket of the
Image ROI Center
node. - 8.Retrieve the output ROI image and ROI coordinates for further processing or analysis.
- The
Image ROI Center
node allows you to define a region of interest (ROI) by cropping an image based on a specified center coordinate, width, and height. - The center coordinate represents the
(x, y)
position of the center of the ROI within the image. - The width and height values determine the horizontal and vertical size of the ROI, respectively.
- The node performs cropping based on the specified center coordinate, width, and height and outputs the cropped ROI image and ROI coordinates.
- The extracted ROI image and ROI coordinates can be used for further processing, analysis, or visualization in subsequent nodes.
That concludes the documentation for the
Image ROI Center
node in AugeLab Studio. Use this node to define a region of interest (ROI) by cropping an image based on a specified center coordinate, width, and height.