Read@CVL
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 
)
int rdf::Histogram::binIdx ( double  val) const
cv::Mat rdf::Histogram::draw ( const QPen &  pen = QPen(),
const QColor &  bgCol = QColor(255, 255, 255) 
)
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
bool rdf::Histogram::isEmpty ( ) const
double rdf::Histogram::maxBin ( ) const
int rdf::Histogram::maxBinIdx ( ) const
double rdf::Histogram::minBin ( ) const
int rdf::Histogram::numBins ( ) const
double rdf::Histogram::transformX ( double  val,
const Rect r 
) const
protected
double rdf::Histogram::transformY ( double  val,
double  minV,
double  maxV,
const Rect r 
) const
protected
double rdf::Histogram::value ( int  binIdx) const

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: