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  

|
ziad
April 09, 2007 10:20AM
Hi Brad,

The (very) latest version of 3dAllineate now outputs transformation matrices in ALLINEATE_MATVEC_B2S_* and ALLINEATE_MATVEC_S2B_* in the output dataset's header.
You can get at these matrices using catmatvec.

For example, say you registered source+orig to base+orig with:
3dAllineate -input source+orig -base base+orig -prefix source_2_base

You can get that transform with:
cat_matvec 'source_2_base+orig::ALLINEATE_MATVEC_S2B_000000' > S2B.1D
(the inverse transform, from base to source, is stored under ALLINEATE_MATVEC_B2S_* )

To apply the same transform you can use :
3dWarp -matvec_in2out S2B.1D -prefix source_2_base_manual -gridset base+orig source+orig

In this trivial example, source_2_base_manual+orig is the same as source_2_base+orig

To combine successive transforms together, you also use: cat_matvec and then apply the combined transform with 3dWarp as shown above. You'll need to read the help for cat_matvec for more info. The transforms are stored in the output's header under a name that is based on the program used to create them. cat_matvec allows you to get at all of them.
Note that you might be a little confused with the names of the transforms (whichwhat is forward and whichwhat is backward) but dumping the individual matrices and testing them separately as shown above will show you which to use at every step.

Keep in mind that 3dAllineate is still changing, send us datasets that fail to register properly, if you can.

cheers,
-ziad
Subject Author Posted

3dAllineate, matrix concatentation

Brad Buchsbaum April 06, 2007 07:18PM

Re: 3dAllineate, matrix concatentation

ziad April 09, 2007 10:20AM

Re: 3dAllineate, matrix concatentation

Brad Buchsbaum April 10, 2007 01:56PM

Re: 3dAllineate, matrix concatentation

ziad April 10, 2007 03:34PM

Re: 3dAllineate, matrix concatentation

Brad Buchsbaum April 10, 2007 04:03PM

Re: 3dAllineate, matrix concatentation

Brad Buchsbaum April 10, 2007 05:42PM

Re: 3dAllineate, matrix concatentation

ziad April 12, 2007 09:54AM

Re: 3dAllineate, matrix concatentation

Walther July 19, 2007 04:35PM

Re: 3dAllineate, matrix concatentation

bob cox July 23, 2007 09:21AM

Re: 3dAllineate, matrix concatentation

bob cox July 27, 2007 02:21PM

Re: 3dAllineate, matrix concatentation

Walther August 09, 2007 10:20PM

Re: 3dAllineate and EPI

bob cox August 10, 2007 08:48AM

Re: 3dAllineate and EPI

bob cox August 10, 2007 09:05AM

Re: 3dAllineate and EPI

Colm Connolly August 14, 2007 09:15AM

Re: 3dAllineate and EPI

bob cox August 14, 2007 09:49AM

Re: 3dAllineate and EPI

Colm Connolly August 16, 2007 07:15AM

Re: 3dAllineate and EPI

bob cox August 21, 2007 11:47AM