public class ROIContourDescriptor extends ROIDescriptor
ROIDescriptor
)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
Constructor and Description |
---|
ROIContourDescriptor() |
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 |
computeContour(ROI roi)
Returns the number of contour point for the specified ROI.
|
java.lang.String |
getDescription()
Returns a single line description (used as tooltip) for this descriptor
|
java.lang.String |
getUnit(Sequence sequence)
Returns the unit of this descriptor (
ex: "px", "mm", "µm2"... |
computeDescriptor, computeDescriptor, equals, getDescriptor, getDescriptor, getDescriptors, getId, getName, getType, hashCode, needRecompute, needRecompute, separateChannel, toString
public static final java.lang.String ID
public ROIContourDescriptor()
public java.lang.String getUnit(Sequence sequence)
ROIDescriptor
ex: "px", "mm", "µm2"...
).
It can return an empty or null
string (default implementation) if there is no
specific unit attached to the descriptor.getUnit
in class ROIDescriptor
sequence
- the sequence on which we want to compute the descriptor (if required) to get access to
the pixel size informations and return according unitpublic java.lang.String getDescription()
ROIDescriptor
getDescription
in class ROIDescriptor
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 computeContour(ROI roi)
roi
- the ROI on which we want to compute the number of contour point