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 01, 2004 07:29PM
Hi!

I have to re-set the origin of large number of SPGR images to the anterior superior comissure and I was thinking of such a procedure:

1) The geometrical origin of the image is A,B,C as displayed by
set geo_origin = (`3dAttribute -name ORIGIN spgr+orig`)
set geo_origin = $geo_origin[3-5]
e.g: echo $geo_origin
> -120.702 119.5312 91.07927

2) I will set a tag a the anterior comissure and read it in:
set tag = (`3dAttribute -name TAGSET_FLOATS spgr+orig`)
set tag = $tag[3-5]
e.g. echo $tag
> -1.920731 -15.702 -6.093803

and here is where I start to struggle:
I know something like this can be done with 3drefit or 3drotate.
However, I tried adding the tag values to the origin values to 3drefit with the -xorigin_raw etc option. Unfortunatly it was off and changed the orientation, which was ASL originally.

Could someone be so kind and help me with this orientation and origin mystery...

Thanks,

Lukas
Subject Author Posted

Setting Origins

Lukas Pezawas March 01, 2004 07:29PM

Re: Setting Origins

rick reynolds March 02, 2004 05:55PM

Re: Setting Origins

Lukas Pezawas March 02, 2004 06:19PM

Re: Setting Origins

rick reynolds March 02, 2004 06:53PM