3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a,ants/contrib/sampling/affine2d.py,Zoom2D,transform,#Zoom2D#Any#Any#,526

Before Change


        zoom_matrix = np.array([[zoom_x, 0, 0],
                                [0, zoom_y, 0]])
        if self.lazy:
            return zoom_matrix
        else:
            self.tx.set_parameters(zoom_matrix)
            return self.tx.apply_to_image(X, reference=self.reference)


class RandomZoom2D(object):

After Change


        self.params = (zoom_x, zoom_y)
        zoom_matrix = np.array([[zoom_x, 0, 0],
                                [0, zoom_y, 0]])
        self.tx.set_parameters(zoom_matrix)
        if self.lazy or X is None:
            return self.tx
        else:
            return self.tx.apply_to_image(X, reference=self.reference)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine2d.py
Class Name: Zoom2D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: Translate3D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine2d.py
Class Name: Shear2D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: Rotate3D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine2d.py
Class Name: Rotate2D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: Zoom3D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine2d.py
Class Name: Translate2D
Method Name: transform


Project Name: ANTsX/ANTsPy
Commit Name: 3cecb7e1e9f64f31fcd0cdd464e9b91ae3d6f65a
Time: 2018-11-24
Author: stnava@gmail.com
File Name: ants/contrib/sampling/affine3d.py
Class Name: Shear3D
Method Name: transform