Simulate MRI magnitude reconstruction with Gaussian real and imaginary components, yielding Rician noise and a positive low-signal noise floor.
The transform computes sqrt((signal + n_real)^2 + n_imag^2). Unlike additive Gaussian noise, this model remains biased upward at low signal-to-noise ratios, matching magnitude MRI reconstruction.
std_rangeNondecreasing range in [0, 1] for the Gaussian component standard deviation as a fraction of the dtype range. Default: (0.05, 0.15).
per_channelIf True, sample independent real and imaginary fields for each channel. If False, share one pair of fields across channels. Default: False.
pProbability of applying the transform. Default: 0.5.
>>> import albumentations as A
>>> import numpy as np
>>> image = np.random.default_rng(137).integers(0, 256, (100, 100, 3), dtype=np.uint8)
>>> transform = A.RicianNoise(std_range=(0.05, 0.15), p=1.0)
>>> noisy_image = transform(image=image)["image"]