public class ROIBasicMeasureDescriptorsPlugin extends Plugin implements PluginROIDescriptor
PluginROIDescriptor
implements the following basic measures ROI descriptors:Modifier and Type | Field and Description |
---|---|
static ROIAreaDescriptor |
areaDescriptor |
static ROIContourDescriptor |
contourDescriptor |
static java.lang.String |
ID_AREA |
static java.lang.String |
ID_CONTOUR |
static java.lang.String |
ID_INTERIOR |
static java.lang.String |
ID_PERIMETER |
static java.lang.String |
ID_SURFACE_AREA |
static java.lang.String |
ID_VOLUME |
static ROIInteriorDescriptor |
interiorDescriptor |
static ROIPerimeterDescriptor |
perimeterDescriptor |
static ROISurfaceAreaDescriptor |
surfaceAreaDescriptor |
static ROIVolumeDescriptor |
volumeDescriptor |
Constructor and Description |
---|
ROIBasicMeasureDescriptorsPlugin() |
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. |
static double |
getMultiplierFactor(Sequence sequence,
ROI roi,
int dim)
Calculate the multiplier factor depending the wanted dimension information.
|
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, toString
public static final java.lang.String ID_CONTOUR
public static final java.lang.String ID_INTERIOR
public static final java.lang.String ID_PERIMETER
public static final java.lang.String ID_AREA
public static final java.lang.String ID_SURFACE_AREA
public static final java.lang.String ID_VOLUME
public static final ROIContourDescriptor contourDescriptor
public static final ROIInteriorDescriptor interiorDescriptor
public static final ROIPerimeterDescriptor perimeterDescriptor
public static final ROIAreaDescriptor areaDescriptor
public static final ROISurfaceAreaDescriptor surfaceAreaDescriptor
public static final ROIVolumeDescriptor volumeDescriptor
public ROIBasicMeasureDescriptorsPlugin()
public static double getMultiplierFactor(Sequence sequence, ROI roi, int dim)
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) throws java.lang.UnsupportedOperationException
PluginROIDescriptor
PluginROIDescriptor.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 PluginROIDescriptor
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.