ReadFramework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rdf::IP Class Reference

#include <ImageProcessor.h>

Static Public Member Functions

static cv::Mat invert (const cv::Mat &src)
 
static cv::Mat grayscale (const cv::Mat &src)
 Returns the Luminance channel of Luv which is better than the RGB2Gray. More...
 
static cv::Mat computeHist (const cv::Mat &data, int width, int numElements=-1, double *maxBin=0)
 Computes the histogram of data. Data can be any type (it will be reduced to CV_32F). More...
 
static void draw (const std::vector< cv::Point > &pts, cv::Mat &img, unsigned char val=255)
 
static double statMomentMat (const cv::Mat &src, const cv::Mat &mask=cv::Mat(), double momentValue=0.5, int maxSamples=10000, int area=-1)
 Computes robust statistical moments of an image. The quantiles of an image (or median) are computed. More...
 
static QColor statMomentColor (const cv::Mat &src, const cv::Mat &mask=cv::Mat(), double momentValue=0.5)
 C. More...
 
static void normalize (cv::Mat &src)
 

Member Function Documentation

cv::Mat rdf::IP::computeHist ( const cv::Mat &  data,
int  width,
int  numElements = -1,
double *  maxBin = 0 
)
static

Computes the histogram of data. Data can be any type (it will be reduced to CV_32F).

Parameters
dataThe data.
widthThe length of the resulting histogram.
numElementsThe number elements if data has more elements, it will be downsampled accordingly.
maxBinThe maximal bin of the resulting histogram.
Returns
A 1xN CV_32F. Each element represents a bin computed from data.
void rdf::IP::draw ( const std::vector< cv::Point > &  pts,
cv::Mat &  img,
unsigned char  val = 255 
)
static
cv::Mat rdf::IP::grayscale ( const cv::Mat &  src)
static

Returns the Luminance channel of Luv which is better than the RGB2Gray.

Parameters
srcThe source.
Returns
cv::Mat rdf::IP::invert ( const cv::Mat &  src)
static
void rdf::IP::normalize ( cv::Mat &  src)
static
QColor rdf::IP::statMomentColor ( const cv::Mat &  src,
const cv::Mat &  mask = cv::Mat(),
double  momentValue = 0.5 
)
static

C.

Parameters
srcThe source.
Returns
double rdf::IP::statMomentMat ( const cv::Mat &  src,
const cv::Mat &  mask = cv::Mat(),
double  momentValue = 0.5,
int  maxSamples = 10000,
int  area = -1 
)
static

Computes robust statistical moments of an image. The quantiles of an image (or median) are computed.

Parameters
srcThe source image CV_32FC1.
maskThe mask CV_32FC1 or CV_8UC1.
momentValueThe moment (e.g. 0.5 for median, 0.25 or 0.75 for quartiles).
maxSamplesThe maximum number of samples (speed up).
areaThe mask's area (speed up).
Returns
The statistical moment.

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