Minimum Rectangle
This function block identifies and outputs the minimum enclosing rectangle around a specified contour in an image. It visually marks the identified rectangle and provides additional geometric information for analysis.
📥 Inputs
Image Any
The input image where the contour is located.
Contour
The contour data that defines the shape for which the minimum enclosing rectangle will be calculated.
📤 Outputs
Image
The output image with the minimum rectangle drawn around the specified contour.
Center
The center point of the identified rectangle.
Width
The width of the rectangle.
Height
The height of the rectangle.
Rectangle
The shape data representing the rectangle.
🕹️ Controls
This block does not have any additional controls. It operates primarily on the inputs provided.
🎨 Features
Visual Output
The block draws the identified rectangle directly on the input image for immediate visual feedback.
Geometric Information
Outputs essential measurements such as the rectangle's center, width, and height.
📝 Usage Instructions
Connect Input Image: Link an image containing the contour to the
Image Any
input.Provide Contour: Connect the contour data to the
Contour
input.Evaluate the Block: Run the block to retrieve an image with the minimum enclosing rectangle drawn around the contour, along with its center point, width, and height.
📊 Evaluation
When executed, this function block processes the input image and the contour data to return the annotated image and geometric properties of the minimum enclosing rectangle.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated