Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read ITK binary (linear) transforms (serialized to matlab format) #21

Closed
oesteban opened this issue Oct 21, 2019 · 1 comment
Closed

Comments

@oesteban
Copy link
Collaborator

oesteban commented Oct 21, 2019

In [1]: from scipy.io import loadmat                                                                                                                                                                                                                                                                                                                                                                               
In [2]: x = loadmat('anat_to_template0GenericAffine.mat')                                                                                                                                                                                                                                                                                                                                                          
In [3]: x                                                                                                                                                                                                                                                                                                                                                                                                          
Out[3]: 
{'AffineTransform_float_3_3': array([[ 1.0574799e+00],
        [-1.3273022e-02],
        [-7.3061734e-03],
        [ 4.1151341e-02],
        [ 9.0720689e-01],
        [ 2.7020630e-01],
        [-3.9677834e-03],
        [-2.6971397e-01],
        [ 9.3990254e-01],
        [-1.0764789e+02],
        [-1.2573708e+02],
        [ 1.1275800e+02]], dtype=float32), 'fixed': array([[ 109.365166],
        [ 156.2379  ],
        [-127.30358 ]], dtype=float32)}
@oesteban
Copy link
Collaborator Author

#35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant