Minimum Rotated Rectangle
This function block outputs a rotated rectangle that encloses a minimum area around a specified contour detected in an image. It is particularly useful for object shape analysis in computer vision.
📥 Inputs
Image Any
The input image in which the contour is located.
Contour
The contour of the object for which the minimum rotated rectangle needs to be calculated.
📤 Outputs
Image
An output image displaying the original image with the minimum rotated rectangle drawn around the specified contour.
Center
The center point of the minimum rotated rectangle.
Width
The width of the minimum rotated rectangle.
Height
The height of the minimum rotated rectangle.
Angle
The rotation angle of the minimum rotated rectangle.
Contour
The contour that defines the minimum rotated rectangle.
🕹️ Controls
There are no specific control elements for this function block as all parameters are derived from the inputs provided.
🎨 Features
Rotated Rectangle Generation
Automatically calculates and draws the smallest enclosing rotated rectangle around the specified contour.
Detailed Output
Provides the center, dimensions, and orientation of the rectangle in addition to the modified image.
📝 Usage Instructions
Input Image: Connect an image containing the object you want to analyze to the
Image Any
input.Input Contour: Provide the contour of the object you wish to enclose with the minimum rotated rectangle.
Execute Evaluation: Run the function block to obtain the image with the rectangle and to receive the parameters of the rectangle.
📊 Evaluation
Upon execution, this function block will compute the minimum rotated rectangle for the given contour, outputting both the modified image and the relevant geometric properties of the rectangle.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated