Module providing common Brain MRI Augmentation Methods for PyTorch.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
-
brainrise.hist.get_first_mode(arr, remove_tail=True, remove_fraction=0.01)[source]ΒΆ Computes the first (reliable) peak in the histogram.
- Parameters
arr : array
the input data.
remove_tail : bool, default True
remove rare portions of histogram.
remove_fraction : float, default 0.01
discared the specified proportion of hist.
- Returns
first_peak : int
index of the first peak.
Follow us