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  

|
February 13, 2023 12:04PM
This may be a slightly messier issue than you are picturing. I am not confident about warping tensor files, since the warps would not modify the rotations in the tensors themselves, and it seems like that would be important. The warp would merely move the tensors, not re-evaluate them.

Ignoring that, note that most AFNI programs do not even handle 64-bit float data. NIFTI images will be converted to 32-bit floats upon input (there is likely terminal text about that). In this case, 3dAllineate will downgrade to 32-bits, apply the warp, and write the output.

*** Do not use nifti_tool -mod_hdr to convert to 64-bit floats. ***
This conversion would just *claim* that the output was 64-bit floats, but it would not be. It is still actually 32-bits on disk, and the dimensions would no longer fit the specified data size.

To actually convert back to 64-bits, use "nifti_tool -convert2dtype", as in something like:

nifti_tool -copy_image -infiles warped.32bit.nii.gz -convert2dtype NIFTI_TYPE_FLOAT64 -prefix warped.64bit.nii.gz

Does that seem reasonable?

- rick
Subject Author Posted

Warp 5D dti nifti files

ChrisKlink February 10, 2023 09:29AM

Re: Warp 5D dti nifti files

ChrisKlink February 12, 2023 06:12PM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 11:05AM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 11:17AM

Re: Warp 5D dti nifti files

rick reynolds February 13, 2023 12:04PM

Re: Warp 5D dti nifti files

ChrisKlink February 13, 2023 02:47PM

Re: Warp 5D dti nifti files

rick reynolds February 13, 2023 05:36PM

Re: Warp 5D dti nifti files

Daniel Glen February 13, 2023 06:44PM