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. | |
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.
ColorFilterHistogram::ColorFilterHistogram | ( | ) |
int ColorFilterHistogram::binFromPixel | ( | const ColorFilter & | filter, |
ColorFilterMode | colorFilterMode, | ||
const QColor & | pixel, | ||
const QRgb & | rgbBackground ) const |
Compute histogram bin number from pixel according to filter.
Definition at line 17 of file ColorFilterHistogram.cpp.
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 41 of file ColorFilterHistogram.cpp.
|
inlinestatic |
int ColorFilterHistogram::valueFromBin | ( | const ColorFilter & | filter, |
ColorFilterMode | colorFilterMode, | ||
int | bin ) |
Inverse of binFromPixel.
Definition at line 79 of file ColorFilterHistogram.cpp.