Skip to content

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

@oesteban

Description

@oesteban
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)}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions