public class ROISizeDescriptorsPlugin extends Plugin implements PluginROIDescriptor
PluginROIDescriptor implements the size ROI descriptors:| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ID_SIZE_C |
static java.lang.String |
ID_SIZE_T |
static java.lang.String |
ID_SIZE_X |
static java.lang.String |
ID_SIZE_Y |
static java.lang.String |
ID_SIZE_Z |
static ROISizeCDescriptor |
sizeCDescriptor |
static ROISizeTDescriptor |
sizeTDescriptor |
static ROISizeXDescriptor |
sizeXDescriptor |
static ROISizeYDescriptor |
sizeYDescriptor |
static ROISizeZDescriptor |
sizeZDescriptor |
| Constructor and Description |
|---|
ROISizeDescriptorsPlugin() |
| 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
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, prepareLibrary, removeSequence, report, toStringpublic static final java.lang.String ID_SIZE_X
public static final java.lang.String ID_SIZE_Y
public static final java.lang.String ID_SIZE_Z
public static final java.lang.String ID_SIZE_T
public static final java.lang.String ID_SIZE_C
public static final ROISizeXDescriptor sizeXDescriptor
public static final ROISizeYDescriptor sizeYDescriptor
public static final ROISizeZDescriptor sizeZDescriptor
public static final ROISizeTDescriptor sizeTDescriptor
public static final ROISizeCDescriptor sizeCDescriptor
public ROISizeDescriptorsPlugin()
public java.util.List<ROIDescriptor> getDescriptors()
PluginROIDescriptorROIDescriptor 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 PluginROIDescriptorpublic java.util.Map<ROIDescriptor,java.lang.Object> compute(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
PluginROIDescriptorPluginROIDescriptor.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.compute in interface PluginROIDescriptorroi - 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.