denoising.py/code/Noise.py

21 lines
695 B
Python
Raw Normal View History

2015-09-09 13:52:20 +00:00
# ~*~ encoding: utf-8 ~*~ #
2015-09-14 14:59:35 +00:00
import random
import time
2015-09-14 14:59:35 +00:00
# import des libs internes
from utility import SaltAndPepper_Noise, Additive_Noise, Multiplicative_Noise, Color_Noise, Gaussian_Noise
from utility import Filter, Shape
class Noise:
# instanciation des classes qui sont dans utility/
def __init__(self):
self.SaltAndPepper = SaltAndPepper_Noise.SaltAndPepper_Noise();
self.Additive = Additive_Noise.Additive_Noise();
self.Multiplicative = Multiplicative_Noise.Multiplicative_Noise();
self.Gaussian = Gaussian_Noise.Gaussian_Noise();
self.Color = Color_Noise.Color_Noise();
self.Filter = Filter.Filter();
self.Shape = Shape.Shape();