public interface PluginROIDescriptor extends PluginNoEDTConstructor
Modifier and Type | Method and Description |
---|---|
java.util.Map<ROIDescriptor,java.lang.Object> |
compute(ROI roi,
Sequence sequence)
Computes the descriptor(s) (declared in the
getDescriptors() ) on the specified ROI. |
java.util.List<ROIDescriptor> |
getDescriptors()
Returns the list of
ROIDescriptor available in this plug-in. |
java.util.List<ROIDescriptor> getDescriptors()
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));
java.util.Map<ROIDescriptor,java.lang.Object> compute(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
getDescriptors()
) on the specified ROI.null
for some of the
descriptor results.compute
method for
each descriptor separately as some descriptor can group their calculation.roi
- the ROI on which the descriptor(s) should be computedsequence
- an optional sequence where the pixel informations can be retrievednull
if the
descriptor cannot be computed).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.