ReadFramework
rdf::Histogram Class Reference

#include <Image.h>

Public Member Functions

 Histogram (const cv::Mat &values=cv::Mat())
 
 Histogram (double minVal, double maxVal, int numBins=256)
 
cv::Mat draw (const QPen &pen=QPen(), const QColor &bgCol=QColor(255, 255, 255))
 
void draw (QPainter &p, const Rect &r) const
 
bool isEmpty () const
 
cv::Mat hist () const
 
double maxBin () const
 
int maxBinIdx () const
 
double minBin () const
 
int numBins () const
 
int binIdx (double val) const
 
double value (int binIdx) const
 
void add (double val, double weight=1.0)
 

Static Public Member Functions

template<typename Num >
static Histogram fromData (const cv::Mat &data, int numBins=256)
 

Protected Member Functions

void draw (QPainter &p) const
 
double transformX (double val, const Rect &r) const
 
double transformY (double val, double minV, double maxV, const Rect &r) const
 

Protected Attributes

cv::Mat mHist
 
double mMinVal = 0
 
double mMaxVal = 0
 

Constructor & Destructor Documentation

rdf::Histogram::Histogram ( const cv::Mat &  values = cv::Mat())
rdf::Histogram::Histogram ( double  minVal,
double  maxVal,
int  numBins = 256 
)

Member Function Documentation

void rdf::Histogram::add ( double  val,
double  weight = 1.0 
)

Here is the caller graph for this function:

int rdf::Histogram::binIdx ( double  val) const

Here is the caller graph for this function:

cv::Mat rdf::Histogram::draw ( const QPen &  pen = QPen(),
const QColor &  bgCol = QColor(255, 255, 255) 
)

Here is the caller graph for this function:

void rdf::Histogram::draw ( QPainter &  p,
const Rect r 
) const
void rdf::Histogram::draw ( QPainter &  p) const
protected
template<typename Num >
static Histogram rdf::Histogram::fromData ( const cv::Mat &  data,
int  numBins = 256 
)
inlinestatic
cv::Mat rdf::Histogram::hist ( ) const

Here is the caller graph for this function:

bool rdf::Histogram::isEmpty ( ) const

Here is the caller graph for this function:

double rdf::Histogram::maxBin ( ) const

Here is the caller graph for this function:

int rdf::Histogram::maxBinIdx ( ) const

Here is the caller graph for this function:

double rdf::Histogram::minBin ( ) const

Here is the caller graph for this function:

int rdf::Histogram::numBins ( ) const

Here is the caller graph for this function:

double rdf::Histogram::transformX ( double  val,
const Rect r 
) const
protected

Here is the caller graph for this function:

double rdf::Histogram::transformY ( double  val,
double  minV,
double  maxV,
const Rect r 
) const
protected

Here is the caller graph for this function:

double rdf::Histogram::value ( int  binIdx) const

Here is the caller graph for this function:

Member Data Documentation

cv::Mat rdf::Histogram::mHist
protected
double rdf::Histogram::mMaxVal = 0
protected
double rdf::Histogram::mMinVal = 0
protected

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