Menu

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.spatial.random_generator(interval, size, dist='uniform', seed=None)[source]

Random varaible generator.

Parameters

interval : 2-uplet

the possible values of the generated random variable.

size : uplet

the number of random variables to be drawn from the sampling distribution.

dist : str, default ‘uniform’

the sampling distribution: ‘uniform’ or ‘lognormal’.

seed : int, default None

seed to control random number generator.

Returns

random_variables : array

the generated random variable.

Follow us

© 2023, brainrise developers