Skip to content, Skip to search


TrakEM2 Scripting

1,716 bytes added, 22:14, 28 October 2009
no edit summary
Examples in [[Jython Scripting|Jython]].
Open the "Plugins - Scripting - Jython Interpreter" (see [[Scripting Help]]) and make sure there is a TrakEM2 project open, with a display open. Then type or paste:the examples below.
Some basics:
*The canvas into which images are dragged and visualized is part of a [ Display] object. The latter has methods to access its [ Selection], as well as the [ Layer] and [ LayerSet] that the Display is viewing.
*The Layer contains 2D objects like [ Layer] Patch] (each Patch wraps an image) and [ Layer] DLabel] (floating text).
*The LayerSet contains 3D objects like [ AreaList], [ Pipe], [ Polyline], [ Ball], [ Dissector], [ Treeline] and [ Stack] (the latter wraps an ij.ImagePlus that contains an ij.ImageStack).
Both Layer and LayerSet and in a way containers. The LayerSet contains as well a list of Layer. The Display merely views the data in a LayerSet, one Layer at a time.
See a TrakEM2 class diagram] for a complete list.
Emailconfirmed, uploaders