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.RandomGhosting(axis, n_ghosts=10, intensity=1, seed=None)[source]¶ Add random MRI ghosting artifact.
Leave first 5% of frequencies untouched.
-
__init__(axis, n_ghosts=10, intensity=1, seed=None)[source]¶ Init class.
- Parameters
axis : int
the axis along which the ghosts artifact will be created.
n_ghosts : int or 2-uplet, default 10
the number of ghosts in the image. Larger values generate more distorted images.
intensity : float or list of float, default 1
a number between 0 and 1 representing the artifact strength. Larger values generate more distorted images.
seed : int, default None
seed to control random number generator.
-
Follow us