Fill Contour
This function block allows you to fill the inside or outside of a specified contour in an image, enabling effective shape analysis and manipulation.
📥 Inputs
Input Image
The image in which you want to fill the specified contour.
Contour
The coordinates of the contour that defines the area to fill. This must consist of at least two points.
📤 Outputs
Output Image
The image after the specified contour has been filled according to user settings.
🕹️ Controls
Fill Inside
A checkbox that lets you specify whether to fill the area inside the contour or outside it. By default, it is checked to fill the inside.
🎨 Features
Contour Filling
The block can be used to fill either the inside or outside of a given contour, enhancing image processing tasks.
Dynamic Contour Handling
The block handles both rectangular contours defined by two points and arbitrary contours defined by multiple points.
📝 Usage Instructions
Connect Input: Provide an image to the
Input Image
input and the contour points to theContour
input.Select Filling Option: Use the
Fill Inside
checkbox to choose whether to fill within the contour (checked) or outside the contour (unchecked).Evaluate: Execute the block to fill the specified area in the image, and the modified image will be output.
📊 Evaluation
When executed, this function block will return an image filled according to the contour specifications and user's choice of filling direction.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated