Classes | Namespaces | Functions | Variables
ts.hpp File Reference

Go to the source code of this file.

Classes

struct  cvtest::MatInfo
 
struct  cvtest::MatComparator
 
class  cvtest::BaseTest
 
struct  cvtest::TestInfo
 
struct  cvtest::TSParams
 
class  cvtest::TS
 
class  cvtest::ArrayTest
 
class  cvtest::BadArgTest
 
struct  cvtest::DefaultRngAuto
 

Namespaces

 cvtest
 

Functions

CV_EXPORTS int64 cvtest::readSeed (const char *str)
 
CV_EXPORTS void cvtest::randUni (RNG &rng, Mat &a, const Scalar &param1, const Scalar &param2)
 
unsigned cvtest::randInt (RNG &rng)
 
double cvtest::randReal (RNG &rng)
 
CV_EXPORTS const char * cvtest::getTypeName (int type)
 
CV_EXPORTS int cvtest::typeByName (const char *type_name)
 
CV_EXPORTS string cvtest::vec2str (const string &sep, const int *v, size_t nelems)
 
int cvtest::clipInt (int val, int min_val, int max_val)
 
CV_EXPORTS double cvtest::getMinVal (int depth)
 
CV_EXPORTS double cvtest::getMaxVal (int depth)
 
CV_EXPORTS Size cvtest::randomSize (RNG &rng, double maxSizeLog)
 
CV_EXPORTS void cvtest::randomSize (RNG &rng, int minDims, int maxDims, double maxSizeLog, vector< int > &sz)
 
CV_EXPORTS int cvtest::randomType (RNG &rng, int typeMask, int minChannels, int maxChannels)
 
CV_EXPORTS Mat cvtest::randomMat (RNG &rng, Size size, int type, double minVal, double maxVal, bool useRoi)
 
CV_EXPORTS Mat cvtest::randomMat (RNG &rng, const vector< int > &size, int type, double minVal, double maxVal, bool useRoi)
 
CV_EXPORTS void cvtest::add (const Mat &a, double alpha, const Mat &b, double beta, Scalar gamma, Mat &c, int ctype, bool calcAbs=false)
 
CV_EXPORTS void cvtest::multiply (const Mat &a, const Mat &b, Mat &c, double alpha=1)
 
CV_EXPORTS void cvtest::divide (const Mat &a, const Mat &b, Mat &c, double alpha=1)
 
CV_EXPORTS void cvtest::convert (const Mat &src, Mat &dst, int dtype, double alpha=1, double beta=0)
 
CV_EXPORTS void cvtest::copy (const Mat &src, Mat &dst, const Mat &mask=Mat(), bool invertMask=false)
 
CV_EXPORTS void cvtest::set (Mat &dst, const Scalar &gamma, const Mat &mask=Mat())
 
CV_EXPORTS void cvtest::extract (const Mat &a, Mat &plane, int coi)
 
CV_EXPORTS void cvtest::insert (const Mat &plane, Mat &a, int coi)
 
CV_EXPORTS int cvtest::check (const Mat &data, double min_val, double max_val, vector< int > *idx)
 
CV_EXPORTS void cvtest::patchZeros (Mat &mat, double level)
 
CV_EXPORTS void cvtest::transpose (const Mat &src, Mat &dst)
 
CV_EXPORTS void cvtest::erode (const Mat &src, Mat &dst, const Mat &_kernel, Point anchor=Point(-1,-1), int borderType=IPL_BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 
CV_EXPORTS void cvtest::dilate (const Mat &src, Mat &dst, const Mat &_kernel, Point anchor=Point(-1,-1), int borderType=IPL_BORDER_CONSTANT, const Scalar &borderValue=Scalar())
 
CV_EXPORTS void cvtest::filter2D (const Mat &src, Mat &dst, int ddepth, const Mat &kernel, Point anchor, double delta, int borderType, const Scalar &borderValue=Scalar())
 
CV_EXPORTS void cvtest::copyMakeBorder (const Mat &src, Mat &dst, int top, int bottom, int left, int right, int borderType, const Scalar &borderValue=Scalar())
 
CV_EXPORTS Mat cvtest::calcSobelKernel2D (int dx, int dy, int apertureSize, int origin=0)
 
CV_EXPORTS Mat cvtest::calcLaplaceKernel2D (int aperture_size)
 
CV_EXPORTS void cvtest::initUndistortMap (const Mat &a, const Mat &k, Size sz, Mat &mapx, Mat &mapy)
 
CV_EXPORTS void cvtest::minMaxLoc (const Mat &src, double *minval, double *maxval, vector< int > *minloc, vector< int > *maxloc, const Mat &mask=Mat())
 
CV_EXPORTS double cvtest::norm (const Mat &src, int normType, const Mat &mask=Mat())
 
CV_EXPORTS double cvtest::norm (const Mat &src1, const Mat &src2, int normType, const Mat &mask=Mat())
 
CV_EXPORTS Scalar cvtest::mean (const Mat &src, const Mat &mask=Mat())
 
CV_EXPORTS bool cvtest::cmpUlps (const Mat &data, const Mat &refdata, int expMaxDiff, double *realMaxDiff, vector< int > *idx)
 
CV_EXPORTS int cvtest::cmpEps (const Mat &data, const Mat &refdata, double *max_diff, double success_err_level, vector< int > *idx, bool element_wise_relative_error)
 
CV_EXPORTS int cvtest::cmpEps2 (TS *ts, const Mat &data, const Mat &refdata, double success_err_level, bool element_wise_relative_error, const char *desc)
 
CV_EXPORTS int cvtest::cmpEps2_64f (TS *ts, const double *val, const double *refval, int len, double eps, const char *param_name)
 
CV_EXPORTS void cvtest::logicOp (const Mat &src1, const Mat &src2, Mat &dst, char c)
 
CV_EXPORTS void cvtest::logicOp (const Mat &src, const Scalar &s, Mat &dst, char c)
 
CV_EXPORTS void cvtest::min (const Mat &src1, const Mat &src2, Mat &dst)
 
CV_EXPORTS void cvtest::min (const Mat &src, double s, Mat &dst)
 
CV_EXPORTS void cvtest::max (const Mat &src1, const Mat &src2, Mat &dst)
 
CV_EXPORTS void cvtest::max (const Mat &src, double s, Mat &dst)
 
CV_EXPORTS void cvtest::compare (const Mat &src1, const Mat &src2, Mat &dst, int cmpop)
 
CV_EXPORTS void cvtest::compare (const Mat &src, double s, Mat &dst, int cmpop)
 
CV_EXPORTS void cvtest::gemm (const Mat &src1, const Mat &src2, double alpha, const Mat &src3, double beta, Mat &dst, int flags)
 
CV_EXPORTS void cvtest::transform (const Mat &src, Mat &dst, const Mat &transmat, const Mat &shift)
 
CV_EXPORTS double cvtest::crossCorr (const Mat &src1, const Mat &src2)
 
CV_EXPORTS std::ostream & cvtest::operator<< (std::ostream &out, const MatInfo &m)
 
CV_EXPORTS void cvtest::fillGradient (Mat &img, int delta=5)
 
CV_EXPORTS void cvtest::smoothBorder (Mat &img, const Scalar &color, int delta=3)
 
CV_EXPORTS void cvtest::printVersionInfo (bool useStdOut=true)
 
CV_EXPORTS void cvTsZero (CvMat *c, const CvMat *mask=0)
 
CV_EXPORTS void cvTsCopy (const CvMat *a, CvMat *b, const CvMat *mask=0)
 
CV_EXPORTS void cvTsConvert (const CvMat *src, CvMat *dst)
 
CV_EXPORTS void cvTsGEMM (const CvMat *a, const CvMat *b, double alpha, const CvMat *c, double beta, CvMat *d, int flags)
 

Variables

class CV_EXPORTS cvtest::TS
 

Function Documentation

CV_EXPORTS void cvTsZero ( CvMat c,
const CvMat mask = 0 
)
CV_EXPORTS void cvTsCopy ( const CvMat a,
CvMat b,
const CvMat mask = 0 
)
CV_EXPORTS void cvTsConvert ( const CvMat src,
CvMat dst 
)
CV_EXPORTS void cvTsGEMM ( const CvMat a,
const CvMat b,
double  alpha,
const CvMat c,
double  beta,
CvMat d,
int  flags 
)