Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the user guide for the big picture.
nidl.volume.transforms.augmentation.RandomGaussianNoise¶
- class nidl.volume.transforms.augmentation.RandomGaussianNoise(mean=0.0, std=(0.1, 1.0), **kwargs)[source]¶
Bases:
VolumeTransformAdd Gaussian noise to input data with random parameters.
The input data can have any shape with type
numpy.ndarrayortorch.Tensor. The output has consistent type and shape with the input.- Parameters:
- mean: float or (float, float), default=0.0
Mean
of the Gaussian distribution from which the noise
is sampled. If two values
are given, then
.- std: (float, float), default=(0.1, 1.0)
Range of the standard deviation
of the Gaussian
distribution from which the noise is sampled
.- kwargs: dict
Keyword arguments.