These are chat archives for fiji/fiji

19th
Dec 2017
Curtis Rueden
@ctrueden
Dec 19 2017 16:07
@milkyklim I am chatting with @kapoorlab, and he was wondering about an example of the "two-level" design of lower-level SciJava commands which work headless, repeatedly called by higher-level interactive code with a UI.
Do you have anything like that ready yet? Ideally it would be great to get something into the imagej tutorials that does that. But if you have a repo that is structured that way, it would be helpful too.
@kapoorlab Here are some examples of simple SciJava commands: https://github.com/imagej/tutorials/tree/master/maven-projects/simple-commands/src/main/java
The multilevel idea is:
  • public static method(s) that take parameters, do work, and return results
  • SciJava Command plugins with @Parameter -- these are recordable and usable headless
  • High-level interactive Swing UI that calls the public static methods too.
@kapoorlab Here is an example of a "mixed-world" command that uses ImageJ2 mostly, but also ij.ImagePlus to do some overlay-related things.
Varun Kapoor
@kapoorlab
Dec 19 2017 17:23
Thanks for the links and the materials, it's a great place to start :+1:
Curtis Rueden
@ctrueden
Dec 19 2017 18:42
You're welcome. ^_^