Just leave pin.VG the same as it is. Pass a bounding box of zeros(2,3)*NaN and voxel sizes of [NaN NaN NaN], and it will write the inverse normalized image with the same dimensions etc as that of the image that you passed to the segment routine. If necessary, you could then use (e.g) the Coreg button to reslice this inverse normalized image.
Best regards,
-John
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Marko Wilke
Sent: Wednesday, September 13, 2006 11:04 AM
To: [log in to unmask]
Subject: [SPM] Inverse normalization to different dimensions
Dear All,
I am struggling with the inverse normalization as available in spm5: I
derived the anatomical_seg_inv_sn.mat file but would like to use that to
"un-normalize" mask data to the dimensions of the (co-registered)
functionals.
Now, I believe that I will have to play around with pin.VG, but simply
replacing that with pin.VG = spm_vol(functional) does not work as the
resulting dimensions are correct but the image is empty. Passing the
adapted bb and voxel size parameters to spm_write_sn(P,pin,flags)
generates a severely distorted image, although again with the correct
dimensions. I obvisouly miss something but I also obviously don't know
what it is...any hints?
Thanks in advance,
Marko
--
=====================================================================
Marko Wilke (Dr.med./M.D.)
[log in to unmask]
Universitäts-Kinderklinik University Children's Hospital
Abt. III (Neuropädiatrie) Dept. III (Pediatric neurology)
Hoppe-Seyler-Str. 1, D - 72076 Tübingen
Tel.: (+49) 07071 29-83416 Fax: (+49) 07071 29-5473
=====================================================================
|