Path: blob/master/modules/core/perf/perf_inRange.cpp
16354 views
#include "perf_precomp.hpp"12namespace opencv_test3{4using namespace perf;56#define TYPICAL_MAT_TYPES_INRANGE CV_8UC1, CV_8UC4, CV_8SC1, CV_16UC1, CV_16SC1, CV_32SC1, CV_32FC1, CV_32FC47#define TYPICAL_MATS_INRANGE testing::Combine(testing::Values(szVGA, sz720p, sz1080p), testing::Values(TYPICAL_MAT_TYPES_INRANGE))89PERF_TEST_P(Size_MatType, inRange, TYPICAL_MATS_INRANGE)10{11Size size = get<0>(GetParam());12int type = get<1>(GetParam());13Mat src1(size, type);14Mat src2(size, type);15Mat src3(size, type);16Mat dst(size, type);1718declare.in(src1, src2, src3, WARMUP_RNG).out(dst);1920TEST_CYCLE() inRange( src1, src2, src3, dst );2122SANITY_CHECK(dst);23}2425} // namespace262728