protoclass.utils.check_modality_gt

protoclass.utils.check_modality_gt(modality, ground_truth, cat)[source]

Check the consistency of the modality with the ground-truth.

Parameters:

modality : object

The modality object of interest.

ground-truth : object of type GTModality

The ground-truth of GTModality.

cat : str

String corresponding at the ground-truth of interest.

Returns:

roi_data : ndarray, shape (non_zero_samples, 3)

Corresponds to the indexes of the data of insterest extracted from the ground-truth.