Coordinates in Anatomist

Questions about Anatomist manipulation

Moderators: denghien, riviere

Post Reply
User avatar
Olivier Coulon
Posts: 176
Joined: Fri Feb 27, 2004 11:48 am
Location: MeCA research group, Institut de Neurosciences de La Timone, Marseille, France
Contact:

Coordinates in Anatomist

Post by Olivier Coulon »

Hello,
when one clicks somwhere in a volume slice, the coordinates (voxels and mm) are displayed in the command window. These are image coordinates. I was wondering if it is possible to get the coordinate in one of the referentiels attached to the volume...

Olivier
Olivier Coulon
Institut de Neurosciences de La Timone,
Aix-Marseille Université,
Marseille, france
https://meca-brain.org
User avatar
riviere
Site Admin
Posts: 1361
Joined: Tue Jan 06, 2004 12:21 pm
Location: CEA NeuroSpin, Saint Aubin, France
Contact:

Re: Coordinates in Anatomist

Post by riviere »

Hi Olivier,

There are several ways to do so:
- in the GUI, the simplest is to set the window in the referential you need. Then coordinates displayed in the windows statusbar (when enabled) are in the window referential.
- by a program, you can use the GetInfo command to get the cursor position, specifying as the "linkcursor_referential" argument the referential you need.
- or in a Python script, you also have this functionality as the Anatomist.linkCursorLastClickedPosition() method, with an optional referential argument:

Code: Select all

pos = anatomist.Anatomist().linkCursorLastClickedPosition( ref )
Denis
Post Reply