MythTV
master
|
#include <mythcommflag/Histogram.h>
Public Member Functions | |
Histogram ()=default | |
~Histogram ()=default | |
void | generateFromImage (MythVideoFrame *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 &other) const |
unsigned int | getAverageIntensity () const |
unsigned int | getThresholdForPercentageOfPixels (float percentage) const |
Private Attributes | |
std::array< int, 256 > | m_data {0} |
unsigned int | m_numberOfSamples {1} |
Definition at line 6 of file Histogram.h.
|
default |
|
default |
void Histogram::generateFromImage | ( | MythVideoFrame * | 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 10 of file Histogram.cpp.
Referenced by ClassicSceneChangeDetector::processFrame().
float Histogram::calculateSimilarityWith | ( | const Histogram & | other | ) | const |
Definition at line 65 of file Histogram.cpp.
Referenced by ClassicSceneChangeDetector::processFrame().
unsigned int Histogram::getAverageIntensity | ( | ) | const |
Definition at line 34 of file Histogram.cpp.
unsigned int Histogram::getThresholdForPercentageOfPixels | ( | float | percentage | ) | const |
Definition at line 49 of file Histogram.cpp.
|
private |
Definition at line 24 of file Histogram.h.
Referenced by calculateSimilarityWith(), generateFromImage(), getAverageIntensity(), and getThresholdForPercentageOfPixels().
|
private |
Definition at line 27 of file Histogram.h.
Referenced by calculateSimilarityWith(), generateFromImage(), getAverageIntensity(), and getThresholdForPercentageOfPixels().