diff transformations/DistorsionGauss.py @ 105:901ab3329064

Parametre deterministe retourne dans les fonctions '_determined_by_complexity' et le parametre stochastique retourne dans les fonctions conventionnelles
author SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca>
date Fri, 12 Feb 2010 10:30:02 -0500
parents e352a98fcc0a
children 1b315470a566
line wrap: on
line diff
--- a/transformations/DistorsionGauss.py	Fri Feb 12 10:21:21 2010 -0500
+++ b/transformations/DistorsionGauss.py	Fri Feb 12 10:30:02 2010 -0500
@@ -21,10 +21,10 @@
         self.effectuer=1    #1=on effectue et 0=rien faire
         
     def get_settings_names(self):
-        return ['ecart_type','effectuer']
+        return ['effectuer']
     
-##    def get_settings_name_determined_by_complexity(self):
-##        return ['ecart_type']
+    def get_settings_names_determined_by_complexity(self,complexity):
+        return ['ecart_type']
 
     def regenerate_parameters(self, complexity):
         self.ecart_type=float(complexity)/10
@@ -32,10 +32,10 @@
         return self._get_current_parameters()
 
     def _get_current_parameters(self):
-        return [self.ecart_type,self.effectuer]
+        return [self.effectuer]
     
-##    def get_parameters_determined_by_complexity(self, complexity):
-##        return [float(complexity)/10]
+    def get_parameters_determined_by_complexity(self,complexity):
+        return [float(complexity)/10]
     
     def transform_image(self, image):
         if self.effectuer == 0: