public class ROIIntensityDescriptorsPlugin extends Plugin implements PluginROIDescriptor
PluginROIDescriptor
implements the following "intensity" ROI descriptors:Modifier and Type | Class and Description |
---|---|
static class |
ROIIntensityDescriptorsPlugin.IntensityDescriptorInfos |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID_MAX_INTENSITY |
static java.lang.String |
ID_MEAN_INTENSITY |
static java.lang.String |
ID_MIN_INTENSITY |
static java.lang.String |
ID_STANDARD_DEVIATION |
static java.lang.String |
ID_SUM_INTENSITY |
static ROIMaxIntensityDescriptor |
maxIntensityDescriptor |
static ROIMeanIntensityDescriptor |
meanIntensityDescriptor |
static ROIMinIntensityDescriptor |
minIntensityDescriptor |
static ROIStandardDeviationDescriptor |
standardDeviationDescriptor |
static ROISumIntensityDescriptor |
sumIntensityDescriptor |
Constructor and Description |
---|
ROIIntensityDescriptorsPlugin() |
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. |
static ROIIntensityDescriptorsPlugin.IntensityDescriptorInfos |
computeIntensityDescriptors(ROI roi,
Sequence sequence,
boolean allowMultiChannel)
Returns the pixel intensity information for the specified ROI and Sequence.
|
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, toString
public static final java.lang.String ID_MIN_INTENSITY
public static final java.lang.String ID_MEAN_INTENSITY
public static final java.lang.String ID_MAX_INTENSITY
public static final java.lang.String ID_SUM_INTENSITY
public static final java.lang.String ID_STANDARD_DEVIATION
public static final ROIMinIntensityDescriptor minIntensityDescriptor
public static final ROIMeanIntensityDescriptor meanIntensityDescriptor
public static final ROIMaxIntensityDescriptor maxIntensityDescriptor
public static final ROISumIntensityDescriptor sumIntensityDescriptor
public static final ROIStandardDeviationDescriptor standardDeviationDescriptor
public ROIIntensityDescriptorsPlugin()
public static ROIIntensityDescriptorsPlugin.IntensityDescriptorInfos computeIntensityDescriptors(ROI roi, Sequence sequence, boolean allowMultiChannel) throws java.lang.Exception, java.lang.UnsupportedOperationException
roi
- the ROI on which we want to compute the intensity descriptorssequence
- the Sequence used to compute the intensity descriptorsallowMultiChannel
- Allow multi channel intensity computation. If this parameter is set to false
and the ROI
number of channel is > 1 then a UnsupportedOperationException
is launch.java.lang.Exception
- If the ROI dimension changed during the descriptor computation.java.lang.UnsupportedOperationException
- If the C dimension of the ROI is > 1 while allowMultiChannel parameter is set to false
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.