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.transforms.volume.augmentation.RandomGamma¶
- class nidl.transforms.volume.augmentation.RandomGamma(gamma=(0.5, 2.0), **kwargs)[source]¶
Bases:
VolumeTransformRandom gamma contrast change of a 3d volume:

with
,
the volume min and max.Reimplementation of MONAI’s
RandAdjustContrast[1] (Apache-2.0). Non-linear, unlikeRandomContrastAdjust(linear gain + bias).- Parameters:
- gamma: (float, float), default=(0.5, 2.0)
Range of
.- kwargs: dict
Keyword arguments.
References
[1]Cardoso, M. J., et al., “MONAI: An open-source framework for deep learning in healthcare.” arXiv, 2022. https://arxiv.org/abs/2211.02701