Classes | |
class | ArrayTest |
class | BadArgTest |
class | BaseTest |
struct | DefaultRngAuto |
class | DeviceManager |
class | Inverse |
struct | MatComparator |
struct | MatInfo |
struct | TestInfo |
class | TS |
struct | TSParams |
class | UseRoi |
Functions | |
CV_EXPORTS int | randomInt (int minVal, int maxVal) |
CV_EXPORTS double | randomDouble (double minVal, double maxVal) |
CV_EXPORTS cv::Size | randomSize (int minVal, int maxVal) |
CV_EXPORTS cv::Scalar | randomScalar (double minVal, double maxVal) |
CV_EXPORTS cv::Mat | randomMat (cv::Size size, int type, double minVal=0.0, double maxVal=255.0) |
CV_EXPORTS cv::gpu::GpuMat | createMat (cv::Size size, int type, bool useRoi=false) |
CV_EXPORTS cv::gpu::GpuMat | loadMat (const cv::Mat &m, bool useRoi=false) |
CV_EXPORTS cv::Mat | readImage (const std::string &fileName, int flags=cv::IMREAD_COLOR) |
read image from testdata folder More... | |
CV_EXPORTS cv::Mat | readImageType (const std::string &fname, int type) |
read image from testdata folder and convert it to specified type More... | |
CV_EXPORTS bool | supportFeature (const cv::gpu::DeviceInfo &info, cv::gpu::FeatureSet feature) |
return true if device supports specified feature and gpu module was built with support the feature. More... | |
CV_EXPORTS void | minMaxLocGold (const cv::Mat &src, double *minVal_, double *maxVal_=0, cv::Point *minLoc_=0, cv::Point *maxLoc_=0, const cv::Mat &mask=cv::Mat()) |
CV_EXPORTS cv::Mat | getMat (cv::InputArray arr) |
CV_EXPORTS testing::AssertionResult | assertMatNear (const char *expr1, const char *expr2, const char *eps_expr, cv::InputArray m1, cv::InputArray m2, double eps) |
CV_EXPORTS double | checkSimilarity (cv::InputArray m1, cv::InputArray m2) |
CV_EXPORTS std::vector< MatType > | types (int depth_start, int depth_end, int cn_start, int cn_end) |
return vector with types from specified range. More... | |
CV_EXPORTS const std::vector < MatType > & | all_types () |
return vector with all types (depth: CV_8U-CV_64F, channels: 1-4). More... | |
CV_EXPORTS void | PrintTo (const UseRoi &useRoi, std::ostream *os) |
CV_EXPORTS void | PrintTo (const Inverse &useRoi, std::ostream *os) |
IMPLEMENT_PARAM_CLASS (Channels, int) CV_ENUM(NormCode | |
NORM_MINMAX | CV_ENUM (Interpolation, INTER_NEAREST, INTER_LINEAR, INTER_CUBIC, INTER_AREA) CV_ENUM(BorderType |
CV_EXPORTS int | getMatchedPointsCount (std::vector< cv::KeyPoint > &gold, std::vector< cv::KeyPoint > &actual) |
CV_EXPORTS int | getMatchedPointsCount (const std::vector< cv::KeyPoint > &keypoints1, const std::vector< cv::KeyPoint > &keypoints2, const std::vector< cv::DMatch > &matches) |
CV_EXPORTS void | dumpImage (const std::string &fileName, const cv::Mat &image) |
CV_EXPORTS void | showDiff (cv::InputArray gold, cv::InputArray actual, double eps) |
CV_EXPORTS void | printCudaInfo () |
CV_EXPORTS int64 | readSeed (const char *str) |
CV_EXPORTS void | randUni (RNG &rng, Mat &a, const Scalar ¶m1, const Scalar ¶m2) |
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) |
CV_EXPORTS void | fillGradient (Mat &img, int delta=5) |
CV_EXPORTS void | smoothBorder (Mat &img, const Scalar &color, int delta=3) |
CV_EXPORTS void | printVersionInfo (bool useStdOut=true) |
Variables | |
NORM_INF | |
NORM_L1 | |
NORM_L2 | |
NORM_TYPE_MASK | |
NORM_RELATIVE | |
NORM_MINMAX | BORDER_REFLECT101 |
NORM_MINMAX | BORDER_REPLICATE |
NORM_MINMAX | BORDER_CONSTANT |
NORM_MINMAX | BORDER_REFLECT |
class CV_EXPORTS | TS |
CV_EXPORTS double cvtest::randomDouble | ( | double | minVal, |
double | maxVal | ||
) |
CV_EXPORTS cv::Scalar cvtest::randomScalar | ( | double | minVal, |
double | maxVal | ||
) |
CV_EXPORTS cv::Mat cvtest::randomMat | ( | cv::Size | size, |
int | type, | ||
double | minVal = 0.0 , |
||
double | maxVal = 255.0 |
||
) |
CV_EXPORTS cv::gpu::GpuMat cvtest::createMat | ( | cv::Size | size, |
int | type, | ||
bool | useRoi = false |
||
) |
CV_EXPORTS cv::gpu::GpuMat cvtest::loadMat | ( | const cv::Mat & | m, |
bool | useRoi = false |
||
) |
CV_EXPORTS cv::Mat cvtest::readImage | ( | const std::string & | fileName, |
int | flags = cv::IMREAD_COLOR |
||
) |
read image from testdata folder
CV_EXPORTS cv::Mat cvtest::readImageType | ( | const std::string & | fname, |
int | type | ||
) |
read image from testdata folder and convert it to specified type
CV_EXPORTS bool cvtest::supportFeature | ( | const cv::gpu::DeviceInfo & | info, |
cv::gpu::FeatureSet | feature | ||
) |
return true if device supports specified feature and gpu module was built with support the feature.
CV_EXPORTS void cvtest::minMaxLocGold | ( | const cv::Mat & | src, |
double * | minVal_, | ||
double * | maxVal_ = 0 , |
||
cv::Point * | minLoc_ = 0 , |
||
cv::Point * | maxLoc_ = 0 , |
||
const cv::Mat & | mask = cv::Mat() |
||
) |
CV_EXPORTS cv::Mat cvtest::getMat | ( | cv::InputArray | arr | ) |
CV_EXPORTS testing::AssertionResult cvtest::assertMatNear | ( | const char * | expr1, |
const char * | expr2, | ||
const char * | eps_expr, | ||
cv::InputArray | m1, | ||
cv::InputArray | m2, | ||
double | eps | ||
) |
CV_EXPORTS double cvtest::checkSimilarity | ( | cv::InputArray | m1, |
cv::InputArray | m2 | ||
) |
CV_EXPORTS std::vector<MatType> cvtest::types | ( | int | depth_start, |
int | depth_end, | ||
int | cn_start, | ||
int | cn_end | ||
) |
return vector with types from specified range.
CV_EXPORTS const std::vector<MatType>& cvtest::all_types | ( | ) |
return vector with all types (depth: CV_8U-CV_64F, channels: 1-4).
CV_EXPORTS void cvtest::PrintTo | ( | const UseRoi & | useRoi, |
std::ostream * | os | ||
) |
CV_EXPORTS void cvtest::PrintTo | ( | const Inverse & | useRoi, |
std::ostream * | os | ||
) |
cvtest::IMPLEMENT_PARAM_CLASS | ( | Channels | , |
int | |||
) |
NORM_MINMAX cvtest::CV_ENUM | ( | Interpolation | , |
INTER_NEAREST | , | ||
INTER_LINEAR | , | ||
INTER_CUBIC | , | ||
INTER_AREA | |||
) |
CV_EXPORTS int cvtest::getMatchedPointsCount | ( | std::vector< cv::KeyPoint > & | gold, |
std::vector< cv::KeyPoint > & | actual | ||
) |
CV_EXPORTS int cvtest::getMatchedPointsCount | ( | const std::vector< cv::KeyPoint > & | keypoints1, |
const std::vector< cv::KeyPoint > & | keypoints2, | ||
const std::vector< cv::DMatch > & | matches | ||
) |
CV_EXPORTS void cvtest::dumpImage | ( | const std::string & | fileName, |
const cv::Mat & | image | ||
) |
CV_EXPORTS void cvtest::showDiff | ( | cv::InputArray | gold, |
cv::InputArray | actual, | ||
double | eps | ||
) |
CV_EXPORTS void cvtest::printCudaInfo | ( | ) |
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 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 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 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 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::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::printVersionInfo | ( | bool | useStdOut = true | ) |
cvtest::NORM_INF |
cvtest::NORM_L1 |
cvtest::NORM_L2 |
cvtest::NORM_TYPE_MASK |
cvtest::NORM_RELATIVE |
NORM_MINMAX cvtest::BORDER_REFLECT101 |
NORM_MINMAX cvtest::BORDER_REPLICATE |
NORM_MINMAX cvtest::BORDER_CONSTANT |
NORM_MINMAX cvtest::BORDER_REFLECT |
class CV_EXPORTS cvtest::TS |