def resample(self, res): """Resample all objects for multi-resolution schemes""" dc = self.dc dc.resample(res, self._t) self._r = regularizer.regularizer(dc.params['regularizer'], dc.params['abcd'][0], dc.params['abcd'][1], dc.params['abcd'][2], dc.params['abcd'][3], self.dc.curr_vox, res)
def __init__(self, input_dictionary): """Initialize image level tools""" # initialize all the model objects self.dc = data_container(input_dictionary['image_data'], input_dictionary['times'], input_dictionary) self._t = transformer.transformer() self._m = matcher.matcher(input_dictionary['matcher'], input_dictionary['window']) self._r = regularizer.regularizer(input_dictionary['regularizer'], input_dictionary['abcd'][0], input_dictionary['abcd'][1], input_dictionary['abcd'][2], input_dictionary['abcd'][3], self.dc.curr_vox, self.dc.curr_res)