Point Polygon Test
This function block is designed to determine whether any points from a specified test shape lie within a defined enclosing shape. It visually represents the results on the output image.
📥 Inputs
Image Gray
The background image on which the shapes will be drawn.
Test Shape
The set of points (shape) to test against the enclosing shape.
Enclosing Shape
The larger shape used to check if the points from the test shape reside within it.
📤 Outputs
Output Image
The resultant image that visually displays the test shape and enclosing shape, along with the points' positions.
Plot Image
A boolean output that indicates whether there are points within the enclosing shape.
🕹️ Controls
This function block does not have any additional controls; however, the behavior of the block depends on the configurations of the input shapes.
🎨 Features
Visual Representation
Provides a visual output that clearly shows which points of the test shape are inside or outside the enclosing shape.
Distance Calculation
Performs a point-in-polygon test for each point in the test shape, marking them accordingly on the output image.
📝 Usage Instructions
Connect Input Images: Link a grayscale image to the
Image Gray
input to use as your background.Define Shapes: Ensure you connect both a test shape and an enclosing shape to their respective inputs.
Evaluate: Run the block to perform the point-in-polygon test. The output image will be generated with points marked according to their status (inside or outside the enclosing shape).
📊 Evaluation
When executed, this function block will check the specified points against the enclosing shape and return an annotated image and a boolean indicating if all points are inside the shape.
💡 Tips and Tricks
🛠️ Troubleshooting
Last updated