int_over_union

daart.eval.int_over_union(array1: ndarray, array2: ndarray) dict[source]

Compute intersection over union for two 1D arrays.

Parameters:
  • array1 (array-like) – integer array of shape (n,)

  • array2 (array-like) – integer array of shape (n,)

Returns:

keys are integer values in arrays, values are corresponding IoU (float)

Return type:

dict