Mercurial > ift6266
changeset 102:ae9152581b09
Parametre stochastique retourne par fonctions habituelles et le parametre deterministe retourne par fonctions 'determined_by_complexity'
author | SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca> |
---|---|
date | Fri, 12 Feb 2010 10:15:22 -0500 |
parents | 553acf4beffb |
children | ebf8b438362e |
files | transformations/PermutPixel.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/transformations/PermutPixel.py Fri Feb 12 10:13:50 2010 -0500 +++ b/transformations/PermutPixel.py Fri Feb 12 10:15:22 2010 -0500 @@ -24,10 +24,10 @@ self.effectuer=1 #1=on effectue, 0=rien faire def get_settings_names(self): - return ['nombre','effectuer'] + return ['effectuer'] -## def get_settings_name_determined_by_complexity(self): -## return ['nombre'] + def get_settings_name_determined_by_complexity(self,complexity): + return ['nombre'] def regenerate_parameters(self, complexity): self.proportion=float(complexity)/3 @@ -37,10 +37,10 @@ return self._get_current_parameters() def _get_current_parameters(self): - return [self.nombre,self.effectuer] + return [self.effectuer] -## def get_parameters_determined_by_complexity(self, complexity): -## return [int(complexity*256)*4] + def get_parameters_determined_by_complexity(self, complexity): + return [int(complexity*256)*4] def transform_image(self, image): if self.effectuer==0: