Comment on page
Image ROI Polygon
The
Image ROI Polygon
node in AugeLab Studio allows you to define a region of interest (ROI) by drawing a polygon on an image. It provides a user interface to interactively create a polygon by clicking on the image canvas. You can use this node to extract a non-rectangular ROI from an image for further processing or analysis.The
Image ROI Polygon
node takes an image 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.Polygon: The coordinates of the vertices of the polygon that defines the ROI. The coordinates are provided as a list of points
[x, y]
that form the vertices of the polygon.
- Node Title: Image ROI Polygon
- Node ID: OP_NODE_POLY_ROI
The
Image ROI Polygon
node has the following input socket:- 1.Image: The input image on which the ROI polygon will be defined.
The
Image ROI Polygon
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.Polygon: The coordinates of the vertices of the polygon that defines the ROI. The coordinates are provided as a list of points
[x, y]
that form the vertices of the polygon.
The
Image ROI Polygon
node provides a user interface within AugeLab Studio to interactively draw a polygon on the image. Here are the UI features and interactions:- Drawing: Left-click on the image canvas to define the vertices of the polygon. Each click adds a new vertex to the polygon.
- Clear Points: Press the
C
key to clear all the points and start drawing a new polygon. - Undo: Press the
U
key to remove the last added point and adjust the polygon accordingly.
- 1.Drag and drop the
Image ROI Polygon
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image to the Image input socket of the
Image ROI Polygon
node. - 3.Run the pipeline.
- 4.The
Image ROI Polygon
node displays the input image in the node view with an interactive canvas. - 5.Left-click on the canvas to define the vertices of the polygon that forms the ROI.
- 6.Continue adding points by clicking on the canvas. Each click adds a new vertex to the polygon.
- 7.To clear all the points and start drawing a new polygon, press the
C
key. - 8.To remove the last added point and adjust the polygon, press the
U
key. - 9.The
Image ROI Polygon
node dynamically updates the displayed polygon on the canvas as you draw. - 10.Once the polygon is defined, the node outputs the cropped ROI image and the coordinates of the polygon vertices.
- 11.Retrieve the output ROI image and polygon coordinates for further processing or analysis.
- The
Image ROI Polygon
node provides an interactive way to define a region of interest (ROI) by drawing a polygon on an image. - Use the left mouse click to add vertices and create a polygon by defining its shape.
- Press the
C
key to clear all the points and start drawing a new polygon. - Press the
U
key to remove the last added point and adjust the polygon. - The node dynamically updates the displayed polygon as you draw on the canvas.
- The extracted ROI image and polygon coordinates can be used for further processing, analysis, or visualization in subsequent nodes.
That concludes the documentation for the
Image ROI Polygon
node in AugeLab Studio. Use this node to define a region of interest (ROI) by drawing a polygon on an image.