#include <ImageProcessor.h>
|
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) |
|
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
-
data | The data. |
width | The length of the resulting histogram. |
numElements | The number elements if data has more elements, it will be downsampled accordingly. |
maxBin | The 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
-
- 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 |
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
-
src | The source image CV_32FC1. |
mask | The mask CV_32FC1 or CV_8UC1. |
momentValue | The moment (e.g. 0.5 for median, 0.25 or 0.75 for quartiles). |
maxSamples | The maximum number of samples (speed up). |
area | The mask's area (speed up). |
- Returns
- The statistical moment.
The documentation for this class was generated from the following files: