Classes | Functions | Variables
cvtest Namespace Reference

Classes

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

Functions

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

Variables

class CV_EXPORTS TS

Function Documentation

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 
)

Variable Documentation

class CV_EXPORTS cvtest::TS