public class ROIStandardDeviationDescriptor extends ROIDescriptor
ROIDescriptor
)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
ROIStandardDeviationDescriptor() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
compute(ROI roi,
Sequence sequence)
Computes the descriptor on the specified ROI and return the result.
|
static double |
computeStandardDeviation(ROI roi,
Sequence sequence)
Computes and returns the compute standard deviation for the specified ROI on given sequence.
|
java.lang.String |
getDescription()
Returns a single line description (used as tooltip) for this descriptor
|
boolean |
needRecompute(SequenceEvent change)
Returns
true if this descriptor need to be recomputed when the specified Sequence change event
happen. |
boolean |
separateChannel()
Returns
true if this descriptor compute its result on Sequence data and *per channel* (as
pixel intensity information). |
computeDescriptor, computeDescriptor, equals, getDescriptor, getDescriptor, getDescriptors, getId, getName, getType, getUnit, hashCode, needRecompute, toString
public static final java.lang.String ID
public ROIStandardDeviationDescriptor()
public java.lang.String getDescription()
ROIDescriptor
getDescription
in class ROIDescriptor
public boolean separateChannel()
ROIDescriptor
true
if this descriptor compute its result on Sequence
data and *per channel* (as
pixel intensity information).false
, override this method if a descriptor require per channel computation.separateChannel
in class ROIDescriptor
ROIDescriptor.compute(ROI, Sequence)
public boolean needRecompute(SequenceEvent change)
ROIDescriptor
true
if this descriptor need to be recomputed when the specified Sequence change event
happen.false
, override this method if a descriptor need a specific implementation.needRecompute
in class ROIDescriptor
ROIDescriptor.compute(ROI, Sequence)
public java.lang.Object compute(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
ROIDescriptor
compute
in class ROIDescriptor
roi
- the ROI on which the descriptor(s) should be computedsequence
- an optional sequence where the pixel informations can be retrieved (see ROIDescriptor.separateChannel()
)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 itpublic static double computeStandardDeviation(ROI roi, Sequence sequence) throws java.lang.UnsupportedOperationException
Double.Nan
if the operation is not supported for that ROI.roi
- the ROI on which we want to compute the standard deviationsequence
- the sequence used to compute the pixel intensityjava.lang.UnsupportedOperationException
- if the operation is not supported for this ROI