iou#

rlemasklib.RLEMask.iou(other)[source][C source]#

Compute the intersection-over-union (IoU) between two masks.

Parameters:

other (RLEMask) – another RLE mask

Returns:

The IoU value between the two masks.

Return type:

float

See also

iou_matrix() for computing the IoU between pairs of multiple masks.