Function slam_mer::map::helper::iou
Defined in File rasterization_helper.hpp
Function Documentation
-
double slam_mer::map::helper::iou(const array4D_t &boxA_, const array4D_t &boxB_, const array2Size_t &imageSize_ = array2Size_t{0, 0})
Compute intersection-over-union (IoU) for two 2D bounding boxes.
- Parameters:
boxA_ – First box represented as
(xMin, yMin, xMax, yMax).boxB_ – Second box represented as
(xMin, yMin, xMax, yMax).imageSize_ – Optional image size
(width, height)used for clipping.
- Returns:
IoU score in the closed interval
[0, 1].