Color threshold in a jython plugin

Dear All,
how do you implement the color threshold in a jython plugin?
Thank you,
Emanuele

You can find the sources here:

It would also be not hard to record the commands (action ‘Macro’) in Jython instead of macro code only, see:

To call the plugin in Jython:

IJ.run(imp, "Color Threshold...", "");

Another option would be to call or rewrite the generated the macro code in Jython,see:

https://imagej.nih.gov/ij/developer/api/ij/IJ.html#runMacro-java.lang.String-

1 Like