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
window synchronisation by using anatomist commands
- François Leroy
- Posts: 30
- Joined: Wed Feb 22, 2006 5:22 pm
-
- Posts: 10
- Joined: Tue Sep 07, 2004 6:01 pm
- Location: Psych. Dept., Rutgers-Newark, RUMBA-Labs
- Contact:
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
.anatomist/protocol.ana seems to don't store any information on orienation/zoom operations I performed.
thanks in advance
--
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT, Master @ CS Dept. UNM
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student Ph.D. @ CS Dept. NJIT, Master @ CS Dept. UNM
- riviere
- Site Admin
- Posts: 1361
- Joined: Tue Jan 06, 2004 12:21 pm
- Location: CEA NeuroSpin, Saint Aubin, France
- Contact:
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:
Anatomist commands are docummented in the (french) html doc: http://brainvisa.info/doc/html/anatomis ... mands.html
Denis
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
Denis