Engauge Digitizer
2
|
Class that generates a histogram according to the current filter. More...
#include <ColorFilterHistogram.h>
Public Member Functions | |
ColorFilterHistogram () | |
Single constructor. | |
int | binFromPixel (const ColorFilter &filter, ColorFilterMode colorFilterMode, const QColor &pixel, const QRgb &rgbBackground) const |
Compute histogram bin number from pixel according to filter. | |
void | generate (const ColorFilter &filter, double histogramBins [], ColorFilterMode colorFilterMode, const QImage &image, int &maxBinCount) const |
Generate the histogram. More... | |
int | valueFromBin (const ColorFilter &filter, ColorFilterMode colorFilterMode, int bin) |
Inverse of binFromPixel. | |
Static Public Member Functions | |
static int | HISTOGRAM_BINS () |
Number of histogram bins. | |
Class that generates a histogram according to the current filter.
Definition at line 17 of file ColorFilterHistogram.h.
void ColorFilterHistogram::generate | ( | const ColorFilter & | filter, |
double | histogramBins[], | ||
ColorFilterMode | colorFilterMode, | ||
const QImage & | image, | ||
int & | maxBinCount | ||
) | const |
Generate the histogram.
The resolution is coarse since
Definition at line 40 of file ColorFilterHistogram.cpp.