public class IntensityHistogram
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
double |
divisor |
int[] |
histogram |
double |
maxValue |
int |
total |
| Constructor and Description |
|---|
IntensityHistogram(int numBins,
double maxValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(double value)
Adds a new value to the histogram
|
void |
add(boofcv.struct.image.ImageFloat32 image)
Adds all the values in the image to the histogram
|
void |
downSample(IntensityHistogram h)
Converts one histogram into another one which has a courser resolution
|
int |
getTotal() |
void |
reset()
Resets the histogram to the initial state
|
public int[] histogram
public int total
public double maxValue
public double divisor
public IntensityHistogram(int numBins,
double maxValue)
numBins - Number of bins in histogrammaxValue - Maximum possible pixel valuepublic void reset()
public void add(double value)
public void add(boofcv.struct.image.ImageFloat32 image)
public void downSample(IntensityHistogram h)
h - Histogram being down sampledpublic int getTotal()