I've been searching for a way to extract both the Patient and Transformation matrices from the respective .nii files that SPM creates, I believe I've located the files, and created a short Python script to extract the matrices for use in MATLAB, but the transformation matrix is in 3-dimensions (121 x 145 x 121), none of which match the patient brain matrix dimensions (448 x 512 x 192).
Am I looking in the wrong place, or simply misunderstanding how SPM applies the oddly shaped transformation matrix to the patient brain? I've reviewed the documentation for SPM and can't find an answer there either. Thanks in advance for your help.
|