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  

|
January 10, 2019 05:24PM
Hi, Daniel
Thanks for your reply.
I am currently trying to align to macaque T1 images (has skull) so I can average them and improve SNR. I used the align_epi_anat.py.
align_epi_anat.py -dset1 dset1.nii.gz -dset2 dset2.nii.gz -master_dset2 dset2.nii.gz -suffix _al.nii.gz -dset1to2 -overwrite

The alignment was good and gave the dset1to2_mat.aff12.1D. The only problem is that the resulted file is a skull-stripped version and I want to keep the skull in the aligned image. So I planed to use 3dAllineate to directly transform the original image. I first obtained the inverse transformation from align_epi_anat.py
cat_matvec -ONELINE dset1to2_mat.aff12.1D -I > dset1to2_matINV.aff12.1D
I then used 3dAllineate and applied the inverse transformation
3dAllineate -input dset1.nii.gz -1Dparam_apply dset1to2_matINV.aff12.1D -master dset2.nii.gz -prefix dset1_al2.nii.gz -overwrite

However, the result looks completely wrong. It seems that the align_epi_anat.py step is correct but somehow I wrongly used the obtained transformation. Can you provide some insights here?

Thanks so much. I am sorry that I did not clearly describle the problem

ruyuan
Subject Author Posted

add brainmask in align_epi_anat

ruyuanzhang December 30, 2018 11:39PM

Re: add brainmask in align_epi_anat

Daniel Glen December 31, 2018 12:27PM

Re: add brainmask in align_epi_anat

ruyuanzhang January 02, 2019 02:52PM

Re: add brainmask in align_epi_anat

Daniel Glen January 02, 2019 03:47PM

Re: add brainmask in align_epi_anat

ruyuanzhang January 10, 2019 05:24PM

Re: add brainmask in align_epi_anat

Daniel Glen January 10, 2019 05:29PM

Re: add brainmask in align_epi_anat

ruyuanzhang January 11, 2019 12:58AM