#include <Histogram.h>
Public Member Functions | |
| Histogram () | |
| ~Histogram () | |
| void | generateFromImage (unsigned char *frame, unsigned int frameWidth, unsigned int frameHeight, unsigned int minScanX, unsigned int maxScanX, unsigned int minScanY, unsigned int maxScanY, unsigned int XSpacing, unsigned int YSpacing) |
| float | calculateSimilarityWith (const Histogram &) const |
| unsigned int | getAverageIntensity () const |
| unsigned int | getThresholdForPercentageOfPixels (float percentage) const |
Private Attributes | |
| int | data [256] |
| unsigned int | numberOfSamples |
Definition at line 4 of file Histogram.h.
| Histogram::Histogram | ( | ) |
Definition at line 6 of file Histogram.cpp.
| Histogram::~Histogram | ( | ) |
Definition at line 14 of file Histogram.cpp.
| void Histogram::generateFromImage | ( | unsigned char * | frame, | |
| unsigned int | frameWidth, | |||
| unsigned int | frameHeight, | |||
| unsigned int | minScanX, | |||
| unsigned int | maxScanX, | |||
| unsigned int | minScanY, | |||
| unsigned int | maxScanY, | |||
| unsigned int | XSpacing, | |||
| unsigned int | YSpacing | |||
| ) |
Definition at line 18 of file Histogram.cpp.
Referenced by ClassicSceneChangeDetector::processFrame().
| float Histogram::calculateSimilarityWith | ( | const Histogram & | other | ) | const |
Definition at line 71 of file Histogram.cpp.
Referenced by ClassicSceneChangeDetector::processFrame().
| unsigned int Histogram::getAverageIntensity | ( | void | ) | const |
Definition at line 40 of file Histogram.cpp.
| unsigned int Histogram::getThresholdForPercentageOfPixels | ( | float | percentage | ) | const |
Definition at line 55 of file Histogram.cpp.
int Histogram::data[256] [private] |
Definition at line 22 of file Histogram.h.
Referenced by calculateSimilarityWith(), generateFromImage(), getAverageIntensity(), getThresholdForPercentageOfPixels(), and Histogram().
unsigned int Histogram::numberOfSamples [private] |
Definition at line 23 of file Histogram.h.
Referenced by calculateSimilarityWith(), generateFromImage(), getAverageIntensity(), getThresholdForPercentageOfPixels(), and Histogram().
1.6.3