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.transform.gaussian_random_field(shape, alpha=3.0, normalize=True, seed=None)[source]ΒΆ Generates 3D gaussian random maps. The probability distribution of each variable follows a Normal distribution.
- Parameters
shape : uplet,
the shape of the output Gaussian random fields.
alpha : flaot, default 3
the power of the power-law momentum distribution.
normalize : bool, default True
normalizes the Gaussian field to have an average of 0.0 and a standard deviation of 1.0.
seed : int, default None
seed to control random number generator.
- Returns
gfield : array
the gaussian random field.
Follow us