This should do it:
tkregister2 --targ rawavg.mgz --mov orig.mgz --reg reg.dat --noedit mri_vol2vol --targ rawavg.mgz --mov orig.mgz --reg reg.dat --o orig-in-rawavg.mgz
If this does not work with your version of vol2vol, then use the one here:
ftp://surfer.nmr.mgh.harvard.edu/transfer/outgoing/flat/greve/mri_vol2vol
Frederick Klauschen wrote:
Hi,
I have to bring up an issue again which we had some discussion about before, but which we haven't yet found a satisfying solution. I would like pose my question a little more precisely again:
- I have a dataset that is in 181x217x181
coordinates. 2) I am processing it as follows:
mri_convert name.img name/mri/orig/001.mgz recon-all -motioncor -subjid name
- after step 2, the resulting dataset is somehow
transformed to a 256x256x256 dataset, i. e. the 181x217x181 is embedded into the 256^3 array: it is rotated and the origin in 181x217x181 is not the origin in the 256x256x256 array. 4) Since I would like to do a voxelwise comparison between the recon-all result and my initial dataset 1), I need to backtransform the result into the 181x217x181 coordinates (and of course, the backtransformation should be the exact inverse of the transformation in 2). I haven't found any info about how this transformation is done by FS, mri_info does not provide it.
Thanks, Frederick
Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer