comparison transformations/local_elastic_distortions.py @ 86:b3d76ebf2fac

Modifs pour interface parameters determined by complexity
author fsavard <francois.savard@polymtl.ca>
date Wed, 10 Feb 2010 17:50:58 -0500
parents c89defea1e65
children
comparison
equal deleted inserted replaced
85:8aadb0f59a64 86:b3d76ebf2fac
82 82
83 # set some defaults 83 # set some defaults
84 self.regenerate_parameters(0.0) 84 self.regenerate_parameters(0.0)
85 85
86 def get_settings_names(self): 86 def get_settings_names(self):
87 return ['alpha', 'sigma'] 87 return []
88 88
89 def _floor_complexity(self, complexity): 89 def _floor_complexity(self, complexity):
90 return self._to_complexity_10(complexity) / 10.0 90 return self._to_complexity_10(complexity) / 10.0
91 91
92 def _to_complexity_10(self, complexity): 92 def _to_complexity_10(self, complexity):
117 return [] # self.current_params.alpha_sigma() 117 return [] # self.current_params.alpha_sigma()
118 118
119 def get_parameters_determined_by_complexity(self, complexity): 119 def get_parameters_determined_by_complexity(self, complexity):
120 tmp_params = self._initialize_new_params(_floor_complexity(complexity)) 120 tmp_params = self._initialize_new_params(_floor_complexity(complexity))
121 return tmp_params.alpha_sigma() 121 return tmp_params.alpha_sigma()
122
123 def get_settings_names_determined_by_complexity(self, complexity):
124 return ['alpha', 'sigma']
122 125
123 # adapted from http://blenderartists.org/forum/showthread.php?t=163361 126 # adapted from http://blenderartists.org/forum/showthread.php?t=163361
124 def _gen_gaussian_kernel(self, sigma): 127 def _gen_gaussian_kernel(self, sigma):
125 # the kernel size can change DRAMATICALLY the time 128 # the kernel size can change DRAMATICALLY the time
126 # for the blur operation... so even though results are better 129 # for the blur operation... so even though results are better