Page 1 of 1

window synchronisation by using anatomist commands

Posted: Thu May 04, 2006 11:08 am
by François Leroy
Hi,
I am presently writing anatomist scripts for quick generation of snapshot images. I have two windows in referential #1, one brain in referential #2, another one in referential #3.
Then I load transformation from #2 to #1 and transformation from #3 to #1.
Finally, I set common camera parameters in both windows (view_quaternion, observer_position and zoom).
After all these commands, the two brains are not completely registered. I do not understand why.
However, when applying manually "synchro" on the two windows, registration is done and is correct.
How can I integrate this "synchro" command into my anatomist script ?
Thank you
François
:?:

Posted: Thu May 04, 2006 10:15 pm
by riviere
Hi François,
I have tried it, and I can't reproduce the problem. I will see it with you tomorrow.
Denis

Posted: Wed Feb 28, 2007 8:23 pm
by yarikoptic
is there an easy way to know orientation/zoom parameters (view_quaternion) of a given object so I could simply add them into .ana file.
.anatomist/protocol.ana seems to don't store any information on orienation/zoom operations I performed.

thanks in advance

Posted: Tue Mar 06, 2007 10:47 pm
by riviere
Hi,
Zoom and orientation parameters are not attached to objects, but to windows. You can get such parameters using the "ObjectInfo" command in a .ana:

Code: Select all

# open a window, assign it number 100
*BEGIN TREE EXECUTE
*BEGIN TREE CreateWindow
type 3D
res_pointer 100
*END
*END
# here, put objects in the window, move the view...
# ...
# then get window parameters
*BEGIN TREE EXECUTE
*BEGIN TREE ObjectInfo
objects 100
*END
*END
Anatomist commands are docummented in the (french) html doc: http://brainvisa.info/doc/html/anatomis ... mands.html
Denis