public class HistogramModel extends AbstractPixelStatisticsModel implements FeatureVectorProvider<MultidimensionalHistogram>
Modifier and Type | Field and Description |
---|---|
MultidimensionalHistogram |
histogram
The histogram data
|
ndims
Constructor and Description |
---|
HistogramModel(int... nbins)
Construct with the given number of bins per dimension
|
Modifier and Type | Method and Description |
---|---|
protected void |
accum(MBFImage im) |
HistogramModel |
clone() |
float[] |
colourAverage(int index)
For a given index, get the average colour which would map to it
|
Pair<float[]> |
colourRange(int index)
For a given index, map to the range of colours which could map to it
|
void |
estimateModel(MBFImage... images)
Estimate the model parameters from the given image(s).
|
MultidimensionalHistogram |
getFeatureVector()
Get the FeatureVector associated with this object.
|
protected void |
reset() |
String |
toString() |
estimateModel
public MultidimensionalHistogram histogram
public HistogramModel(int... nbins)
nbins
- the number of bins in each dimension for the histogramspublic void estimateModel(MBFImage... images)
AbstractPixelStatisticsModel
estimateModel
in class AbstractPixelStatisticsModel
images
- list of imagesprotected void reset()
public Pair<float[]> colourRange(int index)
index
- public float[] colourAverage(int index)
index
- public HistogramModel clone()
public MultidimensionalHistogram getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<MultidimensionalHistogram>