Comment on page
Minimum Circle
The
Minimum Circle
node in AugeLab Studio calculates the minimum enclosing circle for a given contour. It outputs the image with the enclosing circle drawn, the center coordinates of the circle, and the radius of the circle.The
Minimum Circle
node takes an image and a contour as inputs and provides the following outputs:- 1.Image: The input image with the minimum enclosing circle drawn.
- 2.Center: The center coordinates of the minimum enclosing circle.
- 3.Radius: The radius of the minimum enclosing circle.
- Node Title: Minimum Circle
- Node ID: OP_NODE_MIN_CIRCLE
The
Minimum Circle
node has the following input sockets:- 1.Image: The input image.
- 2.Contour: The contour for which the minimum enclosing circle is to be calculated.
The
Minimum Circle
node has the following output sockets:- 1.Image: The input image with the minimum enclosing circle drawn.
- 2.Center: The center coordinates of the minimum enclosing circle.
- 3.Radius: The radius of the minimum enclosing circle.
- 1.Connect an image to the Image input socket of the
Minimum Circle
node. - 2.Connect a contour to the Contour input socket of the
Minimum Circle
node. - 3.Run the pipeline.
- 4.The output sockets will provide the image with the minimum enclosing circle drawn, the center coordinates of the circle, and the radius of the circle.
The
Minimum Circle
node uses the cv2.minEnclosingCircle
function from the OpenCV library to calculate the minimum enclosing circle for the given contour. The center coordinates and radius of the circle are obtained from the function's return value. The node then draws the minimum enclosing circle on the input image using the center coordinates and radius.- 1.Drag and drop the
Minimum Circle
node from the node library onto the canvas in AugeLab Studio. - 2.Connect an image to the Image input socket of the
Minimum Circle
node. - 3.Connect a contour to the Contour input socket of the
Minimum Circle
node. - 4.Run the pipeline.
- 5.The output sockets of the
Minimum Circle
node will provide the image with the minimum enclosing circle drawn, the center coordinates of the circle, and the radius of the circle.
- The
Minimum Circle
node is useful for calculating the minimum enclosing circle for a given contour in an image. - The node outputs the image with the minimum enclosing circle drawn, allowing you to visualize the circle.
- The center coordinates and radius of the circle can be used for further analysis or calculations.
- Ensure that the input image and contour are correctly connected to the corresponding input sockets of the
Minimum Circle
node. - The output socket Image provides the input image with the minimum enclosing circle drawn.
- The output socket Center provides the center coordinates of the minimum enclosing circle.
- The output socket Radius provides the radius of the minimum enclosing circle.
That concludes the documentation for the
Minimum Circle
node in AugeLab Studio. Use this node to calculate the minimum enclosing circle for a contour in an image and extract the center coordinates and radius of the circle for further analysis or visualization.