I am starting the development of a Fiji plugin. Which plugin style should I use ?
More precisely is that possible to use public class MyPlugin implements Command
instead of public class MyPlugin implements PlugIn
with the IJ1 interface (because it’s for now the default interface).
I am currently using public class MyPlugin implements PlugIn
with the run()
method containing :
final Context context = (Context) IJ.runPlugIn("org.scijava.Context", "");
final ImageJ ij = new ImageJ(context);
But when I use ij.ui().show("test", dataset);
, the image open within the IJ2 style while the main window is IJ1 style (the IJ2 window is bugged, for example I can’t even zoom on the image or scale the intensity).
Last thing : what should I use in the main()
method ? ij.ImageJ imageJ = new ij.ImageJ();
or net.imagej.ImageJ imageJ = new net.imagej.ImageJ();
?