public class ColourDescriptor extends Object implements ConnectedComponentProcessor, FeatureVectorProvider<DoubleFV>
Modifier and Type | Class and Description |
---|---|
static class |
ColourDescriptor.ColourDescriptorType
The different types of statistic available.
|
Modifier and Type | Field and Description |
---|---|
protected BasicDescriptiveStatisticsModel |
colmodel |
protected MBFImage |
image |
Constructor and Description |
---|
ColourDescriptor()
Construct with no image.
|
ColourDescriptor(MBFImage image)
Construct with the given image.
|
Modifier and Type | Method and Description |
---|---|
DoubleFV |
getFeatureVector()
Get the FeatureVector associated with this object.
|
double[] |
getFeatureVectorArray() |
BasicDescriptiveStatisticsModel |
getModel() |
void |
process(ConnectedComponent cc)
Perform an operation on the given
ConnectedComponent . |
void |
setImage(MBFImage img)
Set the image to extract pixels from.
|
protected BasicDescriptiveStatisticsModel colmodel
public ColourDescriptor()
setImage(MBFImage)
before processing.public ColourDescriptor(MBFImage image)
image
- the image to extract pixels from.public void process(ConnectedComponent cc)
ConnectedComponentProcessor
ConnectedComponent
.process
in interface ConnectedComponentProcessor
cc
- The ConnectedComponent
to process.public double[] getFeatureVectorArray()
process(ConnectedComponent)
.public void setImage(MBFImage img)
img
- the image.public BasicDescriptiveStatisticsModel getModel()
process(ConnectedComponent)
public DoubleFV getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<DoubleFV>