Noise Examples

[5]:
from easycv import Image
from easycv.transforms import Noise

For this example we will load an image with random(). For more examples of image loading check Image examples.

[6]:
img = Image.random()
img
[6]:
../../_images/examples_transforms_noise_3_0.png

Noise

To add noise to an image we simply apply the Noise Transform with the desired method, for more information check the reference.

[7]:
img.apply(Noise(method="gaussian"))
[7]:
../../_images/examples_transforms_noise_6_0.png
[8]:
img.apply(Noise(method="sp"))
[8]:
../../_images/examples_transforms_noise_7_0.png