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