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_last_mode(arr, remove_tail=True, remove_fraction=0.05)[source]ΒΆ Computes the last (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.05
discared the specified proportion of hist.
- Returns
last_peak : int
index of the last peak.
Follow us