Hull Convex

This function block is used for calculating and visualizing the convex hull around a given contour in an image. The convex hull is the smallest convex shape that can enclose a set of points (or contour).

📥 Inputs

Image Any The input image that contains the contour you wish to analyze.

Contour The specific contour that you want to evaluate for the convex hull.

📤 Outputs

Image The modified image showing both the original contour and the calculated convex hull.

Contour The contour representation of the convex hull.

Center The center point of the convex hull.

Area The area of the convex hull.

🕹️ Controls

This block does not have specific user-facing controls; it operates based on the provided inputs.

🎨 Features

Contour Visualization The block visualizes both the original contour and the convex hull using different colors for easy identification.

Area Calculation Automatically computes the area of the convex hull for subsequent analysis.

Center Identification Outputs the center point of the convex hull for potential use in further processing.

📝 Usage Instructions

  1. Input Image: Connect the image containing the desired contour to the Image Any input.

  2. Input Contour: Provide the relevant contour data to the Contour input.

  3. Evaluate: Run the block to generate the convex hull around the specified contour.

📊 Evaluation

Upon evaluation, this function block will display the convex hull overlaid on the input image, providing additional contour data and its area.

💡 Tips and Tricks

Using before Additional Shape Analysis

Always ensure that the contour detected is accurate. The convex hull will give information but may cover imperfections in the original contour. Use advanced shape analysis techniques first.

Cleanup Contour Inputs

If contours seem incorrect or the convex hull is not behaving as expected, consider preprocessing your contour inputs using Morphological Transformations or by applying filters to clean edges and shapes.

🛠️ Troubleshooting

No Contour Detected

Ensure your input image is processed correctly before providing it as a contour. Use Canny Edge Detector or Find Contour function blocks to detect appropriate contours from your images.

Incorrect Area Output

If the area is not matching your expectations, double-check that the contours fed into the block are correct. Adjust parameters or noise filters on earlier processing steps to ensure accurate contour definitions.

Last updated