public class BlockHistogramModel extends AbstractPixelStatisticsModel implements FeatureVectorProvider<MultidimensionalHistogram>
Modifier and Type | Field and Description |
---|---|
MultidimensionalHistogram[][] |
histograms
The histogram data
|
ndims
Constructor and Description |
---|
BlockHistogramModel(int blocks_x,
int blocks_y,
int... nbins)
Construct with the given parameters
|
Modifier and Type | Method and Description |
---|---|
protected void |
accum(MBFImage im,
int bx,
int by) |
BlockHistogramModel |
clone() |
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(MultidimensionalHistogram histogram) |
MultidimensionalHistogram |
toSingleHistogram() |
String |
toString() |
estimateModel
public MultidimensionalHistogram[][] histograms
public BlockHistogramModel(int blocks_x, int blocks_y, int... nbins)
blocks_x
- the number of blocks in the x-directionblocks_y
- the number of blocks in the y-directionnbins
- the number of bins in each dimension for the histogramspublic MultidimensionalHistogram toSingleHistogram()
protected void reset(MultidimensionalHistogram histogram)
public void estimateModel(MBFImage... images)
AbstractPixelStatisticsModel
estimateModel
in class AbstractPixelStatisticsModel
images
- list of imagespublic BlockHistogramModel clone()
public MultidimensionalHistogram getFeatureVector()
FeatureVectorProvider
getFeatureVector
in interface FeatureVectorProvider<MultidimensionalHistogram>