Mercurial > ift6266
comparison transformations/PermutPixel.py @ 103:ebf8b438362e
corrige nom de la methode get_settings_names_determined_by_complexity(self,complexity)
author | SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca> |
---|---|
date | Fri, 12 Feb 2010 10:21:02 -0500 |
parents | ae9152581b09 |
children | c25435ee72a8 |
comparison
equal
deleted
inserted
replaced
102:ae9152581b09 | 103:ebf8b438362e |
---|---|
24 self.effectuer=1 #1=on effectue, 0=rien faire | 24 self.effectuer=1 #1=on effectue, 0=rien faire |
25 | 25 |
26 def get_settings_names(self): | 26 def get_settings_names(self): |
27 return ['effectuer'] | 27 return ['effectuer'] |
28 | 28 |
29 def get_settings_name_determined_by_complexity(self,complexity): | 29 def get_settings_names_determined_by_complexity(self,complexity): |
30 return ['nombre'] | 30 return ['nombre'] |
31 | 31 |
32 def regenerate_parameters(self, complexity): | 32 def regenerate_parameters(self, complexity): |
33 self.proportion=float(complexity)/3 | 33 self.proportion=float(complexity)/3 |
34 self.nombre=int(256*self.proportion)*4 #Par multiple de 4 (256=1024/4) | 34 self.nombre=int(256*self.proportion)*4 #Par multiple de 4 (256=1024/4) |