81a8b727b37afe8ea76326a8d088d436e6b1b7bf,dipy/external/fsl.py,,flirt2aff,#Any#Any#Any#,45

Before Change


    """
    // The in_img voxels to ref_img voxels as recorded in the current affines
    current_in2ref = np.dot(ref_img.get_affine(), in_img.get_affine())
    if npl.det(current_in2ref) < 0:
        raise ValueError("Negative determinant to current affine mapping - bailing out")
    return np.dot(npl.inv(ref_zoomer), np.dot(mat, in_zoomer))

After Change


    if npl.det(in_img.get_affine())>=0:
        inspace = np.dot(inspace, _x_flipper(in_hdr.get_data_shape()[0]))
    if npl.det(ref_img.get_affine())>=0:
        refspace = np.dot(refspace, _x_flipper(ref_hdr.get_data_shape()[0]))
    // Return voxel to voxel mapping
    return np.dot(npl.inv(refspace), np.dot(mat, inspace))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: 81a8b727b37afe8ea76326a8d088d436e6b1b7bf
Time: 2011-01-19
Author: matthew.brett@gmail.com
File Name: dipy/external/fsl.py
Class Name:
Method Name: flirt2aff


Project Name: scipy/scipy
Commit Name: 98f4f9279c24b92435bceeb7db7f20dee2b7ebc9
Time: 2015-07-25
Author: damon.mcdougall@gmail.com
File Name: scipy/stats/kde.py
Class Name: gaussian_kde
Method Name: integrate_kde


Project Name: scipy/scipy
Commit Name: 98f4f9279c24b92435bceeb7db7f20dee2b7ebc9
Time: 2015-07-25
Author: damon.mcdougall@gmail.com
File Name: scipy/stats/kde.py
Class Name: gaussian_kde
Method Name: integrate_gaussian