AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 17, 2014 12:42PM
Hi Daniel,
I had one additional question. If I have 1 T1 image and 2 EPI datasets and all with different oblique angles I wanted to find out the best way to use 3dWarp -card2oblique. I would not be able to use it on the original T1 image as this would force me to run freesurfer twice (since i'd need 2 copies of T1 to match the different oblique angles of the 2 EPI datasets). I had the following ideas:

1)One thought is just take the original T1 and make it cardinal (it is isotropic but 256x256x208 matrix size) using 3dWarp -oblique2card and then run the freesurfer pipeline once. Then use bbregister or 3dAllineate on it to have it match for each EPI scan.

2) Would it be possible to run 3dWarp -card2oblique on the freesurfer result file brain.mgz, and have aseg.mgz match the same transform (apply same change vs redoing 3dWarp -card2oblique with aseg file instead of brain) after i convert both images to nifti format? From here I would then run 3dAllineate for each EPI dataset.

3) Another way to work around the issues I was having is to see if you know how freesurfer bbregister writes to the nifti file header compared with how AFNI looks for this transform information:
#Calculate alignment
bbregister --s ${sub}_FS --mov $bbrest_file --reg ${sub}_RS_register.dat --init-header --bold --frame $NP_last --nearest --template-out ${sub}.RS.template.nii
#Apply alignment
mri_vol2vol --mov $loc_dir/spm/m${sub}.T1.nii --targ $SUBJECTS_DIR/${sub}_FS/mri/brain.mgz --o $out_dir/__brain_FS2spm.nii --inv --no-save-reg --reg $out_dir/${sub}_RS_register.dat

The images looked overlayed in freesurfer, but I was not able to get the images overlayed properly in afni for the oblique datasets. They only looked perfectly aligned when the T1 and EPI were acquired with no oblique angles. I have a feeling that because the original T1 and EPI images were of different obllique angles this may contribute to the mismatch. Additionally, I'm guessing that freesurfer's mri_vol2vol may store the transform differently in the header than where AFNI looks to read it. Are you aware of how freesurfer stores these transforms, as well as where afni looks (sform, qform etc)...

Thanks,
Ajay
Subject Author Posted

3dAllineate and oblique data

Bonnie January 24, 2008 12:41PM

Re: 3dAllineate and oblique data

Daniel Glen January 24, 2008 02:01PM

Re: 3dAllineate and oblique data

Bonnie January 24, 2008 03:02PM

Re: 3dAllineate and oblique data

Bonnie January 24, 2008 03:18PM

Re: 3dAllineate and oblique data

Daniel Glen January 24, 2008 03:28PM

Re: 3dAllineate and oblique data

Bonnie January 24, 2008 05:10PM

Re: 3dAllineate and oblique data

Daniel Glen January 24, 2008 05:18PM

Re: 3dAllineate and oblique data

Bonnie January 28, 2008 04:38PM

Re: 3dAllineate and oblique data

Daniel Glen January 28, 2008 05:36PM

Re: 3dAllineate and oblique data

Bonnie January 29, 2008 03:26PM

Re: 3dAllineate and oblique data

Daniel Glen January 29, 2008 03:39PM

Re: 3dAllineate and oblique data

Bonnie January 30, 2008 03:35PM

Re: 3dAllineate and oblique data

Daniel Glen January 30, 2008 03:56PM

Re: 3dAllineate and oblique data

AjaySK October 17, 2014 01:56AM

Re: 3dAllineate and oblique data

Daniel Glen October 17, 2014 10:29AM

Re: 3dAllineate and oblique data

AjaySK October 17, 2014 11:41AM

Re: 3dAllineate and oblique data

AjaySK October 17, 2014 12:42PM

Re: 3dAllineate and oblique data

Daniel Glen October 17, 2014 02:35PM

Re: 3dAllineate and oblique data

AjaySK October 17, 2014 02:49PM

Re: 3dAllineate and oblique data

Daniel Glen October 17, 2014 01:30PM

Re: 3dAllineate and oblique data

Peter Molfese October 17, 2014 01:37PM

Re: 3dAllineate and oblique data

AjaySK October 17, 2014 02:46PM

Re: 3dAllineate and oblique data

Emmanuelle Renauld November 18, 2016 11:13AM

Re: 3dAllineate and oblique data

Daniel Glen November 29, 2016 03:10AM