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

Go to the source code of this file.

Classes

class  cvtest::DeviceManager
 
class  cvtest::UseRoi
 
class  cvtest::Inverse
 

Namespaces

 cvtest
 
 cv
 Namespace where all the C++ OpenCV functionality resides.
 
 cv::gpu
 

Functions

CV_EXPORTS int cvtest::randomInt (int minVal, int maxVal)
 
CV_EXPORTS double cvtest::randomDouble (double minVal, double maxVal)
 
CV_EXPORTS cv::Size cvtest::randomSize (int minVal, int 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 More...
 
CV_EXPORTS cv::Mat cvtest::readImageType (const std::string &fname, int type)
 read image from testdata folder and convert it to specified type More...
 
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. More...
 
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. More...
 
CV_EXPORTS const std::vector
< MatType > & 
cvtest::all_types ()
 return vector with all types (depth: CV_8U-CV_64F, channels: 1-4). More...
 
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) CV_ENUM(NormCode
 
NORM_MINMAX cvtest::CV_ENUM (Interpolation, INTER_NEAREST, INTER_LINEAR, INTER_CUBIC, INTER_AREA) CV_ENUM(BorderType
 
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 void cv::gpu::PrintTo (const DeviceInfo &info, std::ostream *os)
 

Variables

 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