1 #ifndef COLOR_FILTER_HISTOGRAM_H
2 #define COLOR_FILTER_HISTOGRAM_H
19 ColorFilterMode colorFilterMode,
21 const QRgb &rgbBackground)
const;
27 double histogramBins [],
28 ColorFilterMode colorFilterMode,
30 int &maxBinCount)
const;
37 ColorFilterMode colorFilterMode,
42 static int FIRST_NON_EMPTY_BIN_AT_START () {
return 1; }
46 #endif // COLOR_FILTER_HISTOGRAM_H
void generate(const ColorFilter &filter, double histogramBins[], ColorFilterMode colorFilterMode, const QImage &image, int &maxBinCount) const
Generate the histogram.
Class for filtering image to remove unimportant information.
int binFromPixel(const ColorFilter &filter, ColorFilterMode colorFilterMode, const QColor &pixel, const QRgb &rgbBackground) const
Compute histogram bin number from pixel according to filter.
int valueFromBin(const ColorFilter &filter, ColorFilterMode colorFilterMode, int bin)
Inverse of binFromPixel.
ColorFilterHistogram()
Single constructor.
Class that generates a histogram according to the current filter.
static int HISTOGRAM_BINS()
Number of histogram bins.