cv::RNG Class Reference
#include <cxcore.hpp>
List of all members.
Public Types |
enum | { A = 4164903690U,
UNIFORM = 0,
NORMAL = 1
} |
Public Member Functions |
| RNG () |
| RNG (uint64 _state) |
unsigned | next () |
| operator uchar () |
| operator schar () |
| operator ushort () |
| operator short () |
| operator unsigned () |
unsigned | operator() (unsigned N) |
| Returns a random integer sampled uniformly from [0, N).
|
unsigned | operator() () |
| operator int () |
| operator float () |
| operator double () |
int | uniform (int a, int b) |
float | uniform (float a, float b) |
double | uniform (double a, double b) |
void | fill (Mat &mat, int distType, const Scalar &a, const Scalar &b) |
void | fill (MatND &mat, int distType, const Scalar &a, const Scalar &b) |
double | gaussian (double sigma) |
| Returns Gaussian random variate with mean zero.
|
Public Attributes |
uint64 | state |
Member Enumeration Documentation
Constructor & Destructor Documentation
cv::RNG::RNG |
( |
uint64 |
_state |
) |
|
Member Function Documentation
unsigned cv::RNG::next |
( |
|
) |
|
cv::RNG::operator uchar |
( |
|
) |
|
cv::RNG::operator schar |
( |
|
) |
|
cv::RNG::operator short |
( |
|
) |
|
cv::RNG::operator unsigned |
( |
|
) |
|
unsigned cv::RNG::operator() |
( |
unsigned |
N |
) |
|
Returns a random integer sampled uniformly from [0, N).
unsigned cv::RNG::operator() |
( |
|
) |
|
cv::RNG::operator int |
( |
|
) |
|
cv::RNG::operator float |
( |
|
) |
|
cv::RNG::operator double |
( |
|
) |
|
int cv::RNG::uniform |
( |
int |
a, |
|
|
int |
b | |
|
) |
| | |
float cv::RNG::uniform |
( |
float |
a, |
|
|
float |
b | |
|
) |
| | |
double cv::RNG::uniform |
( |
double |
a, |
|
|
double |
b | |
|
) |
| | |
void cv::RNG::fill |
( |
Mat & |
mat, |
|
|
int |
distType, |
|
|
const Scalar & |
a, |
|
|
const Scalar & |
b | |
|
) |
| | |
double cv::RNG::gaussian |
( |
double |
sigma |
) |
|
Returns Gaussian random variate with mean zero.
Member Data Documentation
The documentation for this class was generated from the following files: