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  

|
September 23, 2020 04:23AM
Doesn't that only move the center of the image (e.g. move the center from center of mass to center of the volume) but not moving the data itself?

Doing a simple 3dresample command is problematic since that can cut of parts of the brain. What seems to work is this:

for i in * ; do 3dAllineate -cmass -warp shift_only -base ../new_template.nii.gz -source $i -prefix rs_$i ; done
The -warp shif_only option in combination with the -cm option seems to move the brain into the center of the new volume and it has the right resolution. No rotation or further alignment seem to have taken place. This basically does what I want - I just want to know if there is a better option or a flag I should use.

Adding image of original image, template and resulting image



Edited 2 time(s). Last edit at 09/23/2020 09:11AM by Robin.
Attachments:
open | download - to_afni.png (327.2 KB)
Subject Author Posted

How to simply move the brain to center of matrix-space

Robin September 21, 2020 05:28AM

Re: How to simply move the brain to center of matrix-space

Colm Connolly September 22, 2020 09:30AM

Re: How to simply move the brain to center of matrix-space Attachments

Robin September 23, 2020 04:23AM

Re: How to simply move the brain to center of matrix-space

Daniel Glen September 24, 2020 11:19AM

Re: How to simply move the brain to center of matrix-space

Robin September 28, 2020 06:44AM

Re: How to simply move the brain to center of matrix-space

Daniel Glen September 28, 2020 11:25AM

Re: How to simply move the brain to center of matrix-space

Robin September 29, 2020 05:26AM