public abstract class SlideSetPlugin extends Object implements org.scijava.command.Command
Command
API (see: imagej.command.Command
and org.scijava.plugin.Plugin
) can be executed
through Slide Set, provided that there are appropriate
ElementReader
s and ElementWriter
s for
the command input and output parameters. However, plugins
developed specifically for Slide Set can benefit in two
ways from extending SlideSetPlugin
and using the
annotation, @Plugin(type=SlideSetPlugin.class)
.
First, unlike general ImageJ plugins, SlideSetPlugin
s
are listed in the Slide Set core user interface menus. Second,
SlideSetPlugin
s may return multiple sets of results per
set of inputs (for example, a different result for each region
of interest). In order to do so, a SlideSetPlugin
must
implement the MultipleResults
interface and use arrays
or List
s for the results. All the arrays and List
s
must have the same number of elements and are assumed to be in the
same order. Any results which are not arrays or Lists will be
repeated to match the array or List length. To return no results,
the output parameters should be set to 0-length arrays or
List
s, not null
.
Copyright © 2023. All rights reserved.