Skip to content, Skip to search


TrakEM2 Scripting

1 byte added, 17:24, 19 June 2012
Extract areas from an arealist and put them as ROIs in ImageJ's ROI Manager: fix tyop
Notice that python (and jython) lets you use object instance methods as first-class functions, and contructors constructors as well. This enables us to rewrite the "putAreas" function in a functional way, without using any temporary variables and without any if/else logic:
<source lang="python">
Bureaucrat, incoming, administrator, uploaders