public class AdvancedROIDescriptor extends Plugin implements PluginROIDescriptor
PluginROIDescriptor
plugin implements the basic ROI descriptors as perimeter,
surface, area...Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_STANDARD_DEV |
Constructor and Description |
---|
AdvancedROIDescriptor() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<ROIDescriptor,java.lang.Object> |
compute(ROI roi,
Sequence sequence,
int z,
int t,
int c)
Computes the descriptor(s) (declared in the
PluginROIDescriptor.getDescriptors() ) on the
specified ROI. |
java.util.List<ROIDescriptor> |
getDescriptors()
Returns the list of
ROIDescriptor available in this plug-in. |
addIcyFrame, addSequence, getActiveImage, getActiveSequence, getActiveViewer, getDescriptor, getFocusedImage, getFocusedSequence, getFocusedViewer, getIconResource, getImageResource, getInstallFolder, getName, getOwnerClassName, getPlugin, getPreferences, getPreferencesRoot, getResource, getResourceAsStream, getResources, getSequences, isBundled, loadLibrary, removeSequence, report, toString
public static final java.lang.String ID_STANDARD_DEV
public AdvancedROIDescriptor()
public java.util.List<ROIDescriptor> getDescriptors()
PluginROIDescriptor
ROIDescriptor
available in this plug-in.Listresult = ArrayList (); result.add(new ROIDescriptor("area", Double.class)); result.add(new ROIDescriptor("volume", Double.class)); result.add(new ROIDescriptor("...", Double.class));
getDescriptors
in interface PluginROIDescriptor
public java.util.Map<ROIDescriptor,java.lang.Object> compute(ROI roi, Sequence sequence, int z, int t, int c) throws java.lang.UnsupportedOperationException
PluginROIDescriptor
PluginROIDescriptor.getDescriptors()
) on the
specified ROI. Depending on the type of descriptor and ROI, this method may compute (and
populate the map with) only a subset of the declared descriptors.compute
method for
each descriptor separately as some descriptor may group their calculation.compute
in interface PluginROIDescriptor
roi
- the ROI on which the descriptor(s) should be computedsequence
- an optional sequence where the pixel size can be retrievedz
- the specific Z position (slice) where we want to compute the descriptor or
-1
to compute it over the whole ROI Z dimension.t
- the specific T position (frame) where we want to compute the descriptor or
-1
to compute it over the whole ROI T dimension.c
- the specific C position (channel) where we want to compute the descriptor or
-1
to compute it over the whole ROI C dimension.java.lang.UnsupportedOperationException
- if the type of the given ROI is not supported by this descriptor, or if
sequence
is null
while the calculation requires it, or if
the specified Z, T or C position are not supported for this descriptor