Menu

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.RandomOffset(factor, seed=None)[source]

Add a random intensity offset (shift and scale).

__init__(factor, seed=None)[source]

Init class.

Parameters

arr : array

the input data.

factor : float or 2-uplet

the offset scale factor [0, 1] for the standard deviation and the mean.

seed : int, default None

seed to control random number generator.

Follow us

© 2023, brainrise developers