Skip to content, Skip to search

Changes

TrakEM2 Scripting

No change in size, 09:13, 16 October 2010
Obtaining the X,Y,Z coordinates of all nodes in a Tree
<source lang="python">
from ini.trakem2.display import Display
from jarray import zerosarray
def getNodeCoordinates(tree):
#
for nd in root.getSubtreeNodes():
fp = zerosarray([nd.getX(), nd.getY()], 'f')
affine.transform(fp, 0, fp, 0, 1)
x = fp[0] * calibration.pixelWidth
Emailconfirmed, uploaders
653
edits