MythTV  master
Public Member Functions | Private Attributes | List of all members
Histogram Class Reference

#include <Histogram.h>

Public Member Functions

 Histogram ()
 ~Histogram ()=default
void generateFromImage (VideoFrame *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 m_data [256]
unsigned int m_numberOfSamples

Detailed Description

Definition at line 6 of file Histogram.h.

Constructor & Destructor Documentation

◆ Histogram()

Histogram::Histogram ( )

Definition at line 8 of file Histogram.cpp.

◆ ~Histogram()

Histogram::~Histogram ( )

Member Function Documentation

◆ generateFromImage()

void Histogram::generateFromImage ( VideoFrame 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 16 of file Histogram.cpp.

Referenced by ClassicSceneChangeDetector::processFrame().

◆ calculateSimilarityWith()

float Histogram::calculateSimilarityWith ( const Histogram other) const

Definition at line 71 of file Histogram.cpp.

Referenced by ClassicSceneChangeDetector::processFrame().

◆ getAverageIntensity()

unsigned int Histogram::getAverageIntensity ( void  ) const

Definition at line 40 of file Histogram.cpp.

◆ getThresholdForPercentageOfPixels()

unsigned int Histogram::getThresholdForPercentageOfPixels ( float  percentage) const

Definition at line 55 of file Histogram.cpp.

Member Data Documentation

◆ m_data

int Histogram::m_data[256]

◆ m_numberOfSamples

unsigned int Histogram::m_numberOfSamples

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