43 #ifndef __OPENCV_GPU_PERF_UTILITY_HPP__
44 #define __OPENCV_GPU_PERF_UTILITY_HPP__
53 #define ALL_BORDER_MODES BorderMode::all()
54 #define ALL_INTERPOLATIONS Interpolation::all()
60 enum { Gray = 1, TwoChannel = 2, BGR = 3, BGRA = 4 };
61 CV_ENUM(MatCn, Gray, TwoChannel, BGR, BGRA)
63 #define GPU_CHANNELS_1_3_4 testing::Values(MatCn(Gray), MatCn(BGR), MatCn(BGRA))
64 #define GPU_CHANNELS_1_3 testing::Values(MatCn(Gray), MatCn(BGR))
66 #define GET_PARAM(k) std::tr1::get< k >(GetParam())
68 #define DEF_PARAM_TEST(name, ...) typedef ::perf::TestBaseWithParam< std::tr1::tuple< __VA_ARGS__ > > name
69 #define DEF_PARAM_TEST_1(name, param_type) typedef ::perf::TestBaseWithParam< param_type > name
76 #define GPU_TYPICAL_MAT_SIZES testing::Values(perf::sz720p, perf::szSXGA, perf::sz1080p)
78 #define FAIL_NO_CPU() FAIL() << "No such CPU implementation analogy"
80 #define GPU_SANITY_CHECK(mat, ...) \
82 cv::Mat gpu_##mat(mat); \
83 SANITY_CHECK(gpu_##mat, ## __VA_ARGS__); \
86 #define CPU_SANITY_CHECK(mat, ...) \
88 cv::Mat cpu_##mat(mat); \
89 SANITY_CHECK(cpu_##mat, ## __VA_ARGS__); \
103 CV_EXPORTS
void PrintTo(
const CvtColorInfo& info, std::ostream* os);
110 #endif // __OPENCV_GPU_PERF_UTILITY_HPP__
CV_ENUM(BorderMode, BORDER_REFLECT101, BORDER_REPLICATE, BORDER_CONSTANT, BORDER_REFLECT, BORDER_WRAP) CV_ENUM(Interpolation
area-based (or super) interpolation
Definition: imgproc.hpp:557
INTER_LINEAR
Definition: gpu_perf.hpp:57
INTER_CUBIC
Definition: gpu_perf.hpp:57
int int int flags
Definition: highgui_c.h:186
Definition: highgui.hpp:169
int dcn
Definition: gpu_perf.hpp:97
int scn
Definition: gpu_perf.hpp:96
Definition: ts_perf.hpp:375
The 2D size class.
Definition: core.hpp:81
CV_EXPORTS void sortKeyPoints(std::vector< cv::KeyPoint > &keypoints, cv::InputOutputArray _descriptors=cv::noArray())
const CvArr CvSeq ** keypoints
Definition: compat.hpp:647
CV_EXPORTS void PrintTo(const CvtColorInfo &info, std::ostream *os)
Definition: imgproc.hpp:63
INTER_NEAREST
Definition: gpu_perf.hpp:57
Definition: imgproc.hpp:62
The n-dimensional matrix class.
Definition: core.hpp:1688
CvtColorInfo(int scn_, int dcn_, int code_)
Definition: gpu_perf.hpp:101
CvtColorInfo()
Definition: gpu_perf.hpp:100
CV_EXPORTS void printCudaInfo()
perf::Size_MatType Sz_Type
Definition: gpu_perf.hpp:72
Definition: imgproc.hpp:62
Definition: imgproc.hpp:63
CV_EXPORTS cv::Mat readImage(const std::string &fileName, int flags=cv::IMREAD_COLOR)
CV_EXPORTS OutputArray noArray()
Definition: imgproc.hpp:64
Definition: gpu_perf.hpp:94
int code
Definition: gpu_perf.hpp:98
DEF_PARAM_TEST(Sz_Depth, cv::Size, perf::MatDepth)
Proxy datatype for passing Mat's and vector<>'s as input parameters.
Definition: core.hpp:1400