Analyze>Skeleton>Analyze Skeleton (2D/3D) , when run interactively,
generates a Results table that contains summary information of each tree
in the rows of the table -- one row per tree. It also can generate a
second table called
"Branch information", in which each row represents a branch, and it is
sorted by tree number (ascending) and then branch length (descending).
I called AnalyzeSkeleton_ through the API, using the following code snippet:
skel = AnalyzeSkeleton_()
skel.calculateShortestPath = False
skelResult = skel.run(AnalyzeSkeleton_.NONE, False, False, None, True,
True)meanBL = skelResult.getAverageBranchLength() # just to check that
it is working.
print "Frame: ", i, len(meanBL)