question about AnalyzeSkeleton_ API

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

question about AnalyzeSkeleton_ API

Aryeh Weiss
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
skel.setup("", tmpImp)
skelResult =, False, False, None, True,
True)meanBL = skelResult.getAverageBranchLength()  # just to check that
it is working.
print "Frame: ", i, len(meanBL)

Now, skelResult is a SkeletonResult
object that contains all of the information that is in the Results table.
For example, skelResult.getAverageBranchLength() returns the
corresponding column in the Results table that is generated during the
interactive run.

However, I have not found corresponding methods that return the
information in the "Branch information" table.
This table is generated in the source code
as an extra results table called extra_rt.

Is there a way to get this table (either displayed or as methods that
return the entries) through the API?

Alternatively, I can roll my own by copying the code into my own
function, but I prefer to ask before I re-invent the wheel.

Thanks in advance

Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

ImageJ mailing list: