Comment on page
Approximate Contour
The
Approximate Contour
node in AugeLab Studio approximates a given contour with a simplified contour that has a reduced number of edges. It uses the Ramer-Douglas-Peucker algorithm to approximate the contour with fewer vertices while preserving its shape.The
Approximate Contour
node takes an input image and a contour as inputs and provides the following outputs:- 1.Image: The input image with the original contour and the approximated contour drawn on it.
- 2.Contour: The simplified contour that approximates the original contour.
- 3.Center: The center point of the simplified contour.
- 4.Perimeter: The perimeter length of the simplified contour.
- 5.Number of corners: The number of corners in the simplified contour.
- Node Title: Approximate Contour
- Node ID: OP_NODE_APPRX_CNTR
The
Approximate Contour
node has the following input sockets:- 1.Image: The input image to be displayed with the original and approximated contours.
- 2.Contour: The contour to be approximated.
The
Approximate Contour
node has the following output sockets:- 1.Image: The input image with the original contour and the approximated contour drawn on it.
- 2.Contour: The simplified contour that approximates the original contour.
- 3.Center: The center point of the simplified contour.
- 4.Perimeter: The perimeter length of the simplified contour.
- 5.Number of corners: The number of corners in the simplified contour.
The
Approximate Contour
node provides a user interface within AugeLab Studio to adjust the approximation precision. Here are the UI features and interactions:- Approximation Precision: The node includes a slider labeled "Epsilon" to control the approximation precision. Higher values result in a more simplified contour with fewer vertices, while lower values preserve more details of the original contour.
- 1.Drag and drop the
Approximate Contour
node from the node library onto the canvas in AugeLab Studio. - 2.Connect the input image to the Image input socket of the
Approximate Contour
node. - 3.Connect the contour to be approximated to the Contour input socket of the node.
- 4.Adjust the approximation precision using the "Epsilon" slider in the node's user interface.
- 5.Run the pipeline.
- 6.The
Approximate Contour
node displays the input image with the original contour and the approximated contour drawn on it. - 7.The simplified contour, center point, perimeter length, and number of corners of the approximated contour are provided as outputs.
- 8.Retrieve the outputs for further analysis, visualization, or other shape analysis tasks in subsequent nodes.
- The
Approximate Contour
node simplifies a given contour by reducing the number of vertices while preserving its shape. - The approximation precision can be adjusted using the "Epsilon" slider. Higher values result in more simplified contours with fewer vertices.
- The simplified contour can be used for various shape analysis tasks, such as calculating the area, perimeter, center point, or number of corners of the contour.
- The
Approximate Contour
node is useful for reducing the complexity of contours and extracting key shape features for further analysis or visualization.
That concludes the documentation for the
Approximate Contour
node in AugeLab Studio. Use this node to approximate contours and extract simplified shape features from an input image.Q