Module providing common Brain MRI Augmentation Methods for PyTorch.
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.
-
class
brainrise.intensity.Rescale(mask=None, percentiles=(0, 100), dynamic=(0, 1))[source]¶ Performs a rescale of the image intensities to a certain range.
-
__init__(mask=None, percentiles=(0, 100), dynamic=(0, 1))[source]¶ Init class.
- Parameters
mask : array, default None
the brain mask.
percentiles : 2-uplet, default (0, 100)
percentile values of the input image that will be mapped. This parameter can be used for contrast stretching.
dynamic : 2-uplet, default (0, 1)
the intensities range of the rescaled data.
-
Follow us