Difference between revisions of "TrakEM2 Scripting"

(Starting ...)
(No difference)

Revision as of 21:35, 28 October 2009

Examples in Jython

Get the instance of a selected image

>>> p = Display.getFront().getActive()
>>> print p
090504_0314_ex0768.mrc z=0.0 #67398


Obtain the ImagePlus of a selected image

>>> p = Display.getFront().getActive()
>>> imp = p.getImagePlus()
>>> print imp.width, imp.height
2048 2048