mt.geo2d.iou
Intersection over Union. In the current primitive form, it is treated as a separate module.
Functions
iou()
: Computes the Intersection-over-Union ratio of two (sets of non-overlapping) 2D geometry objects. Right now we only accept Rect and Polygon.
- mt.geo2d.iou.iou(geo2d_obj1, geo2d_obj2)
Computes the Intersection-over-Union ratio of two (sets of non-overlapping) 2D geometry objects. Right now we only accept Rect and Polygon.
- Parameters:
- Returns:
the IoU ratio of the two objects, regardless of whether they are sepcified in clockwise or counter-clockwise order
- Return type:
float