Engauge Digitizer  2
Public Member Functions | Static Public Member Functions | List of all members
ColorFilterHistogram Class Reference

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.
 

Detailed Description

Class that generates a histogram according to the current filter.

Definition at line 17 of file ColorFilterHistogram.h.

Member Function Documentation

◆ generate()

void ColorFilterHistogram::generate ( const ColorFilter filter,
double  histogramBins[],
ColorFilterMode  colorFilterMode,
const QImage &  image,
int &  maxBinCount 
) const

Generate the histogram.

The resolution is coarse since

  1. finer resolution is not needed
  2. this smooths out the curve

Definition at line 40 of file ColorFilterHistogram.cpp.


The documentation for this class was generated from the following files: