loading transformation with pyAnatomist
Posted: Tue Feb 26, 2019 7:36 pm
Hello,
I am trying to display a set of volumes and meshes (from the same original T1 image) in the Talairach-ACPC referential within a python script, using pyAnatomist.
I used the online documentation:
http://brainvisa.info/pyanatomist-4.6/s ... sformation
and produced the code below. My objects are loaded in aMesh, aMRI and aSTS, and the path for the 'subject_default_acquisition_TO_Talairach-ACPC.trm' is in pathTalairach.
After this I add objects in several windows. The problem is that it has no effect whatsoever. If I comment the 'loadTransformation' line the result is the same.
I cannot figure out whatelse to do. Any idea ?
Thank you,
Olivier
I am trying to display a set of volumes and meshes (from the same original T1 image) in the Talairach-ACPC referential within a python script, using pyAnatomist.
I used the online documentation:
http://brainvisa.info/pyanatomist-4.6/s ... sformation
and produced the code below. My objects are loaded in aMesh, aMRI and aSTS, and the path for the 'subject_default_acquisition_TO_Talairach-ACPC.trm' is in pathTalairach.
Code: Select all
source = a.createReferential()
target = a.createReferential()
aMesh.assignReferential(source)
aMRI.assignReferential(source)
aSTS.assignReferential(source)
a.loadTransformation(pathTalairach, source, target)
I cannot figure out whatelse to do. Any idea ?
Thank you,
Olivier