pairwise_object_stats
Compute the TP, FP, FN objects from a boolean contigency table.
Parameters¶
matches : np.ndarray
A pairwise boolean matrix where True values at pos (i, j)
indicate correctly detected objects for the corresponding
labels i and j. Shape: (n_labels_gt, n_labels_pred).
sum_reduce : bool, default=True
Reduce the boolean indice arrays by summing to get the correct
number of TP, FP, and FN objects.
Returns¶
Tuple[int, int, int]:
The number of TP objects, FP objects, and FN objects in
a labelled mask.