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  

|
August 10, 2015 07:16PM
I just stumbled on something weird that may be worth to report.

With 3dQwarp, I non-linearly register two EPI images that were acquired with the same parameters except for the direction of phase encoding (for EPI distortion correction), and the output images are as expected half-way between the input images:
3dQwarp -overwrite -prefix funMean.nii.gz -base distRef.nii.gz -weight distRef-mask.nii.gz -source funMean.nii.gz -noZdis -noXdis -plusminus -superhard -minpatch 9 -nmi

Applying the inverse of the displacement map to the output (the undistorted image) in order to recover the input (the distorted image) gives weird results. The original and recovered distorted images don't match. Parts of the image are displacement in direction other then the one it is supposed to be displaced:
3dNwarpApply -overwrite -prefix funMeanX.nii.gz -nwarp 'INV(funMean_PLUS_WARP.nii.gz)' -source funMean_PLUS.nii.gz

But inverting the displacement map sperately before applying it worked!?:
3dNwarpCat -prefix funMean_PLUS_WARPX.nii.gz -warp1 'INV(funMean_PLUS_WARP.nii.gz)'
3dNwarpApply -overwrite -prefix funMeanXX.nii.gz -nwarp funMean_PLUS_WARPX.nii.gz -source funMean_PLUS.nii.gz

Is that some bug or a silly mistake I am making?

Thanks a lot!
Sébastien
Subject Author Posted

Apply inverse of non-linear warp from3dQwarp

Sébastien Proulx August 10, 2015 07:16PM

Re: Apply inverse of non-linear warp from3dQwarp

Emperor Zhark August 11, 2015 10:05AM

Re: Apply inverse of non-linear warp from3dQwarp

Sébastien Proulx August 27, 2015 11:14AM

Re: Apply inverse of non-linear warp from3dQwarp

Sébastien Proulx August 28, 2015 11:54AM

Re: Apply inverse of non-linear warp from3dQwarp

rick reynolds August 28, 2015 12:15PM

Re: Apply inverse of non-linear warp from3dQwarp

rick reynolds August 31, 2015 09:04AM

Re: Apply inverse of non-linear warp from3dQwarp

Sébastien Proulx August 31, 2015 12:52PM