Noise
Module
Warning
This module is considered internal.
Noise
is an abstract base class that defines a common interface for applying noise to images. Classes that inherit from Noise
must implement the add_noise
method, which applies a specific type of noise effect to an image.
Methods
add_noise()
This method applies a specific type of noises to an image and returns the resulting image. Each subclass of Noise
must implement this method to define its own noise effects.
-
Parameters:
-
image :
Image
An instance of PIL.Image representing the image to which noise will be applied.
-
-
Returns:
-
Image
:A PIL.Image object representing the image after the noise has been applied.
-