11e3117c81947be5a7dc501b7108cb38b258d9d9,dipy/align/imaffine.py,MattesMIMetric,setup,#MattesMIMetric#Any#Any#Any#Any#Any#Any#,49

Before Change


            self.update_gradient = self.update_gradient_dense
            self.samples = None
            self.ns = 0
            self.transformed = transform_image(self.static,
                                               self.static_grid2world,
                                               self.moving,
                                               self.moving_grid2world, P)
            self.transformed = self.transformed.astype(np.float64)
        else:
            self.update_pdfs = self.update_pdfs_sparse
            self.update_gradient = self.update_gradient_sparse

After Change


            self.update_gradient = self.update_gradient_dense
            self.samples = None
            self.ns = 0
            self.transformed = self.affine_map.transform(self.moving)
            self.transformed = self.transformed.astype(np.float64)
        else:
            self.update_pdfs = self.update_pdfs_sparse
            self.update_gradient = self.update_gradient_sparse
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: nipy/dipy
Commit Name: 11e3117c81947be5a7dc501b7108cb38b258d9d9
Time: 2015-07-16
Author: jomaroceguedag@gmail.com
File Name: dipy/align/imaffine.py
Class Name: MattesMIMetric
Method Name: setup


Project Name: nipy/dipy
Commit Name: 11e3117c81947be5a7dc501b7108cb38b258d9d9
Time: 2015-07-16
Author: jomaroceguedag@gmail.com
File Name: dipy/align/imaffine.py
Class Name: MattesMIMetric
Method Name: _update


Project Name: nipy/dipy
Commit Name: 11e3117c81947be5a7dc501b7108cb38b258d9d9
Time: 2015-07-16
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_imaffine.py
Class Name:
Method Name: test_affreg_defaults