changeset 100:67e655fc1d0b

Separation des parametres deterministes et stochastiques dans les methodes retournant noms et valeurs
author SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca>
date Fri, 12 Feb 2010 09:53:40 -0500
parents 939915371a6d
children 553acf4beffb
files transformations/PoivreSel.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/transformations/PoivreSel.py	Thu Feb 11 17:26:44 2010 -0500
+++ b/transformations/PoivreSel.py	Fri Feb 12 09:53:40 2010 -0500
@@ -28,10 +28,10 @@
         self.effectuer=1    #Vaut 1 si on effectue et 0 sinon.
         
     def get_settings_names(self):
-        return ['proportion_bruit','effectuer']
+        return ['effectuer']
     
-##    def get_settings_name_determined_by_complexity(self):
-##        return ['proportion_bruit']
+    def get_settings_name_determined_by_complexity(self):
+        return ['proportion_bruit']
 
     def regenerate_parameters(self, complexity):
         self.proportion_bruit = float(complexity)/5
@@ -41,10 +41,10 @@
         return self._get_current_parameters()
 
     def _get_current_parameters(self):
-        return [self.proportion_bruit,self.effectuer]
+        return [self.effectuer]
     
-##    def get_parameters_determined_by_complexity(self, complexity):
-##        return [self.proportion_bruit]
+    def get_parameters_determined_by_complexity(self, complexity):
+        return [self.proportion_bruit]
     
     def transform_image(self, image):
         if self.effectuer == 0: