Remove Polygons outside Mask

Function

Filter out interfering polygons whose overlapping area with the mask is smaller than the set threshold.

Sample Scenario

Fixed used with the Step 2D Matching and the Step Remove Overlapped Polygons to filter out the interfering polygons from matching by the mask.

Input and Output

../../../../../_images/89_remove_polygons_outside_mask.png

Parameters

Usage of Input Masks
Default Value: SingleMask
List of Values: SingleMask (one inputted image corresponds to one mask image), CorrespondingMasks (all the inputted images corresponds to one mask image)
Instruction: To change the way the mask is used. The user can choose to apply one mask to all polygons, or apply a different mask to each polygon.
Min Intersection Ratio(0~1.0)
Default Value: 0.8
Instruction: This parameter is used to adjust the threshold of the overlap area ratio with the mask. If the overlap area ratio between the polygon and the mask is greater than the threshold, the polygon is retained. If the overlap area ratio of the polygon and the mask is less than the threshold, the polygons outside the mask are filtered out.