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.RandomMotion(rotation=10, translation=10, n_transforms=2, perturbation=0.3, axis=None, seed=None)[source]

Add random MRI motion artifact on the last axis.

Reference: Shaw et al., 2019, MRI k-Space Motion Artefact Augmentation: Model Robustness and Task-Specific Uncertainty.

__init__(rotation=10, translation=10, n_transforms=2, perturbation=0.3, axis=None, seed=None)[source]

Init class.

Parameters

rotation : float or 2-uplet, default 10

the rotation in degrees of the simulated movements. Larger values generate more distorted images.

translation : floatt or 2-uplet, default 10

the translation in voxel of the simulated movements. Larger values generate more distorted images.

n_transforms : int, default 2

the number of simulated movements. Larger values generate more distorted images.

perturbation : float, default 0.3

control the intervals between movements. If perturbation is 0, time intervals between movements are constant.

axis : int, default None

the k-space filling axis. If not specified, randomize the k-space filling axis.

seed : int, default None

seed to control random number generator.

Follow us

© 2023, brainrise developers