External Email - Use Caution
I had a script that transformed volumes and surfaces from long (base) space back to cross space for comparison. It doesn't work in Freesurfer 7 and I haven't been able to figure out why. Volumes work with the same code but surfaces are misaligned in cross space. The code is below, any thoughts on how to fix it?
Cheers.
SURFS="white pial inflated"
HEMIS="lh rh"
cd $SUBJECTS_DIR/$LONG/surf
lta_convert --inlta $SUBJECTS_DIR/$BASE/mri/transforms/${CROSS}_to_${BASE}.lta --outreg register.native.dat --src $SUBJECTS_DIR/$CROSS/mri/rawavg.mgz
for CURHEMI in $HEMIS do for CURSURF in $SURFS do mri_surf2surf --sval-xyz $CURSURF --reg-inv register.native.dat --tval $SUBJECTS_DIR/$OUTDIR/surf/$CURHEMI.$CURSURF --tval-xyz $SUBJECTS_DIR/$CROSS/mri/rawavg.mgz --hemi $CURHEMI --s $LONG done done
Dr Chris Adamson Senior Research Officer, Developmental Imaging, Clinical Sciences (0.3 EFT) Software Engineer, Cardiovascular Research (0.7 EFT)
Murdoch Childrens Research Institute The Royal Children's Hospital Flemington Road, Parkville, VIC 3052 Australia E chris.adamson@mcri.edu.aumailto:chris.adamson@mcri.edu.au www.mcri.edu.auhttp://www.mcri.edu.au/
Disclaimer
This e-mail and any attachments to it (the "Communication") are, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Murdoch Children’s Research Institute (MCRI) ABN 21 006 566 972 or any of its related entities. MCRI does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.