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  

|
March 29, 2021 01:12PM
Hi,

I'm frustrated the 3drefit function for a while:
I have a field map data (I extract magnitude(mag) image and the mag image 3dinfo showed orientation is SAR) and a CEST data (3dinfo showed orientation LSP) from rat brain and try to run the field map correction for the CEST image.
I resample them to 4x4x4 with
3dresample -dxyz 4 4 4 -prefix mag_res_brain444.nii -inset mag_res_brain.nii.gz
3dresample -dxyz 4 4 4 -prefix CEST_res_brain444.nii -inset CEST_res_brain.nii.gz
then the orientation of mag_res_brain444.nii from 3dinfo is still SAR (fig mag_CEST_info_1, whole brain image,mag_3dinfo)
and the orientation of CEST_res_brain444.nii from 3dinfo is still LSP (fig mag_CEST_info_1, 5 slices coronal image)
and the AFNI view of the two images show same orientation (fig mag_CEST_info_1 ) like raw images before 3dresample.

I used 3drefit to change the head file of mag_res_brain444.nii to LSP for CEST image is LSP orientation then align it to CEST image, but it failed.
3drefit -deoblique -epan -orient LSP -xdel 4 -ydel 4 -zdel 4 mag_res_brain444_1+orig
the mag_res_brain444_1+orig show [-orient LSP] but AFNI view show the orientation totally changed (fig mag_3drefit).
so, 1. why 3dresample made image to 4x4x4 but AFNI view of CEST_res_brain444.nii still show 20x20x4 like before 3dresample? how to fix it?
2. Why the AFNI view show the image orientation was changed if 3drefit only change the orientation information in head file? how to fix it?
3. Is this a right strategy to make 3dinfo and AFNI view consistent in mag and CEST then align the mag image to CEST?
Thanks a lot,
Tracy
Attachments:
open | download - mag_CEST_info_1.JPG (274.7 KB)
open | download - mag_3drefit.JPG (160.3 KB)
Subject Author Posted

how to change orientation infomation in head file but keep the oritation of image Attachments

Tracy_AFNI March 29, 2021 01:12PM

Re: how to change orientation infomation in head file but keep the oritation of image

ptaylor March 29, 2021 01:59PM

Re: how to change orientation infomation in head file but keep the oritation of image

Daniel Glen March 29, 2021 02:54PM

Re: how to change orientation infomation in head file but keep the oritation of image

Tracy_AFNI March 31, 2021 11:20PM

Re: how to change orientation infomation in head file but keep the oritation of image

Tracy_AFNI March 31, 2021 11:18PM

Re: how to change orientation infomation in head file but keep the oritation of image

ptaylor March 31, 2021 11:24PM

Re: how to change orientation infomation in head file but keep the oritation of image

Tracy_AFNI April 01, 2021 06:22PM

Re: how to change orientation infomation in head file but keep the oritation of image

ptaylor April 02, 2021 10:39AM