Minimum Ellipse
This function block is designed to fit a minimum enclosing ellipse around a specified contour in an image. It helps in shape analysis by providing the parameters of the ellipse that best represents the contour.
📥 Inputs
Image Any
The input image in which the contour exists.
Contour
The contour data representing the shape you want to analyze.
📤 Outputs
Image
The modified input image that displays the fitted minimum enclosing ellipse.
Center
The center point of the fitted ellipse.
Radius1
The length of the first radius of the ellipse.
Radius2
The length of the second radius of the ellipse.
Angle
The rotation angle of the ellipse.
🕹️ Controls
This block does not include direct user controls as inputs are provided externally via connected function blocks.
🎨 Features
Minimum Enclosing Ellipse
Accurately fits and represents a contour with an ellipse that has the smallest possible size.
Visual Feedback
The output image visually marks the fitted ellipse on the original input image, allowing easy identification of the shape.
📝 Usage Instructions
Input Image: Connect the image containing the desired contour to the
Image Any
input.Input Contour: Connect or provide contour data to the
Contour
input.Evaluate: Run the block to compute the minimum enclosing ellipse around the given contour. The output will include the modified image and parameters of the ellipse.
📊 Evaluation
When executed, this function block will output an image with the fitted minimum ellipse drawn, along with parameters that define the ellipse: the center, radii, and angle of rotation.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated