Skip to content, Skip to search

Changes

Jython Scripting

6 bytes added, 01:33, 26 October 2018
m
ImageJ and Fiji API: Use the source tag instead of code
Let's show one example with the ImageJ package and the class [http://javadoc.scijava.org/ImageJ1/ij/plugin/frame/RoiManager.html RoiManager]. According to the javadoc the RoiManager class resides in <code>ij.plugin.frame</code>. Therefore the code will look like :
<codesource lang="python">from ij.plugin.frame import RoiManager <br> RM = RoiManager() # we create an instance of the RoiManager class <br>
rm = RM.getRoiManager() # "activate" the RoiManager otherwise it can behave strangely
</codesource>
==== Using openCV in Jython ====
Emailconfirmed
88
edits