diff transformations/BruitGauss.py @ 159:e81241cfc2de

merge
author Myriam Cote <cotemyri@iro.umontreal.ca>
date Thu, 25 Feb 2010 09:05:48 -0500
parents 7640cb31cf1f
children
line wrap: on
line diff
--- a/transformations/BruitGauss.py	Thu Feb 25 09:04:40 2010 -0500
+++ b/transformations/BruitGauss.py	Thu Feb 25 09:05:48 2010 -0500
@@ -22,17 +22,23 @@
 '''
 
 import numpy
-import random
+#import random
 import scipy
 from scipy import ndimage
 
 class BruitGauss():
     
-    def __init__(self,complexity=1):
+    def __init__(self,complexity=1,seed=6378):
         self.nb_chngmax =10 #Le nombre de pixels changes. Seulement pour fin de calcul
         self.grandeurmax = 20
         self.sigmamax = 6.0
         self.regenerate_parameters(complexity)
+        self.seed=seed
+        
+        #numpy.random.seed(self.seed)
+        
+    def get_seed(self):
+        return self.seed
         
     def get_settings_names(self):
         return ['nb_chng','sigma_gauss','grandeur']