Mercurial > ift6266
diff transformations/thick.py @ 19:db10ee2a07fb
merged 2 thick parameter in one
author | Xavier Glorot <glorotxa@iro.umontreal.ca> |
---|---|
date | Thu, 28 Jan 2010 14:48:12 -0500 |
parents | c91d9f70206d |
children | 442789c94b27 |
line wrap: on
line diff
--- a/transformations/thick.py Thu Jan 28 14:14:53 2010 -0500 +++ b/transformations/thick.py Thu Jan 28 14:48:12 2010 -0500 @@ -38,10 +38,10 @@ #------------------------------------------------ def _get_current_parameters(self): - return [self.meth,self.nb] + return [self.thick_param] def get_settings_names(self): - return ['meth','nb'] + return ['thick_param'] def regenerate_parameters(self, complexity): self.erodenb = N.ceil(complexity * self.__erodemax__) @@ -61,6 +61,7 @@ else: self.meth = 0 self.nb = -1 + self.thick_param = self.meth*self.nb return self._get_current_parameters() def transform_1_image(self,image): #the real transformation method