Add camera-sensor-like noise scaling with intensity (high ISO), useful for low-light or
camera noise simulation. See color_shift_range and intensity_range.
This transform adds random noise to an image, mimicking the effect of using high ISO settings in digital photography. It simulates two main components of ISO noise:
color_shift_rangeRange for changing color hue. Values should be in the range [0, 1], where 1 represents a full 360° hue rotation. Default: (0.01, 0.05)
intensity_rangeRange for the noise intensity. Higher values increase the strength of both color and luminance noise. Default: (0.1, 0.5)
pProbability of applying the transform. Default: 0.5
>>> import numpy as np
>>> import albumentations as A
>>> image = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
>>> transform = A.ISONoise(color_shift_range=(0.01, 0.05), intensity_range=(0.1, 0.5), p=0.5)
>>> result = transform(image=image)
>>> noisy_image = result["image"]