~paparazzi-uav/paparazzi/v5.0-manual

« back to all changes in this revision

Viewing changes to sw/ext/opencv_bebop/opencv/modules/core/perf/perf_inRange.cpp

  • Committer: Paparazzi buildbot
  • Date: 2016-05-18 15:00:29 UTC
  • Revision ID: felix.ruess+docbot@gmail.com-20160518150029-e8lgzi5kvb4p7un9
Manual import commit 4b8bbb730080dac23cf816b98908dacfabe2a8ec from v5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "perf_precomp.hpp"
 
2
 
 
3
using namespace std;
 
4
using namespace cv;
 
5
using namespace perf;
 
6
using std::tr1::make_tuple;
 
7
using std::tr1::get;
 
8
 
 
9
#define TYPICAL_MAT_TYPES_INRANGE  CV_8UC1, CV_8UC4, CV_8SC1, CV_16UC1, CV_16SC1, CV_32SC1, CV_32FC1, CV_32FC4
 
10
#define TYPICAL_MATS_INRANGE       testing::Combine(testing::Values(szVGA, sz720p, sz1080p), testing::Values(TYPICAL_MAT_TYPES_INRANGE))
 
11
 
 
12
PERF_TEST_P(Size_MatType, inRange, TYPICAL_MATS_INRANGE)
 
13
{
 
14
    Size size = get<0>(GetParam());
 
15
    int type = get<1>(GetParam());
 
16
    Mat src1(size, type);
 
17
    Mat src2(size, type);
 
18
    Mat src3(size, type);
 
19
    Mat dst(size, type);
 
20
 
 
21
    declare.in(src1, src2, src3, WARMUP_RNG).out(dst);
 
22
 
 
23
    TEST_CYCLE() inRange( src1, src2, src3, dst );
 
24
 
 
25
    SANITY_CHECK(dst);
 
26
}