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  

|
Chad
November 11, 2009 06:26PM
Thanks Bob,

My specific question is do the 3dAllineate parameters refer to going from input to base coordinates, base to input, or a combination of the two?



Unless the answer is the last, then my problem is this: using the defaults (so, as you note T = S Y X Z), I'm getting the following results doing the matrix math:

SYXZ = {
{0.9976175704420157, -0.028462533215795813,-0.06284160523339294, 2.0358},
{0.03411788020026907, 0.9952811250128278, 0.09083750571124193, 3.37123},
{0.05995959803075708,-0.0927651141116074, 0.9938810191405462, 24.20178},
{0.0, 0.0, 0.0, 1.0}
}

(SYXZ)inv = Zinv Xinv Yinv Sinv = {
{0.9976175704420157, 0.03411788020026907, 0.05995959803075705, -3.5970980716022245},
{-0.028462533215795807, 0.9952811250128278, -0.09276511411160737, -1.0522966785522614},
{-0.06284160523339294, 0.09083750571124191, 0.9938810191405459, -24.23199095586005},
{0.0, 0.0, 0.0, 1.0}
}

Neither of which match the matrix provided by matrix_save (the first is right with the shift, but not the rotations, while the second is close with the rotations, but not the shifts).


Honestly, the best match (just playing with a few reasonable options) seems to be

S (ZXY)inv = S Yinv Xinv Zinv = {
{0.997224814347226, 0.03991994867019513, 0.06284160523339294, 2.0358},
{-0.03411788020026906,0.9952811250128277, -0.09083750571124193, 3.37123},
{-0.06617129211962466,0.08844139240971281, 0.9938810191405462, 24.20178},
{0.0, 0.0, 0.0, 1.0}
}


Thanks Again,
-Chad

Subject Author Posted

3dAllineate parameters

Chad November 11, 2009 05:17PM

Re: 3dAllineate parameters

bob cox November 11, 2009 05:47PM

Re: 3dAllineate parameters

Chad November 11, 2009 06:26PM

Re: 3dAllineate parameters

Judd November 12, 2009 03:02PM

Re: 3dAllineate parameters

Chad November 12, 2009 03:54PM