@@ -75,15 +75,14 @@ int main(int argc, char* argv[])
75
75
76
76
DEF_PARAM_TEST_1 (Image, std::string);
77
77
78
- PERF_TEST_P (Image, HoughLinesP,
79
- testing::Values (std::string(" im1_1280x800.jpg" )))
78
+ GPU_PERF_TEST_P (Image, HoughLinesP, testing::Values(std::string(" im1_1280x800.jpg" )))
80
79
{
81
80
declare.time (30.0 );
82
81
83
82
std::string fileName = GetParam ();
84
83
85
- const double rho = 1.0 ;
86
- const double theta = 1.0 ;
84
+ const float rho = 1 .f ;
85
+ const float theta = 1 .f ;
87
86
const int threshold = 40 ;
88
87
const int minLineLenght = 20 ;
89
88
const int maxLineGap = 5 ;
@@ -125,8 +124,8 @@ PERF_TEST_P(Image, HoughLinesP,
125
124
126
125
DEF_PARAM_TEST (Image_Depth, std::string, perf::MatDepth);
127
126
128
- PERF_TEST_P (Image_Depth, GoodFeaturesToTrack,
129
- testing::Combine (
127
+ GPU_PERF_TEST_P (Image_Depth, GoodFeaturesToTrack,
128
+ testing::Combine (
130
129
testing::Values (std::string(" im1_1280x800.jpg" )),
131
130
testing::Values(CV_8U, CV_16U)
132
131
))
@@ -193,12 +192,12 @@ typedef std::pair<std::string, std::string> string_pair;
193
192
194
193
DEF_PARAM_TEST (ImagePair_Depth_GraySource, string_pair, perf::MatDepth, bool );
195
194
196
- PERF_TEST_P (ImagePair_Depth_GraySource, OpticalFlowPyrLKSparse,
197
- testing::Combine (
198
- testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
199
- testing::Values(CV_8U, CV_16U),
200
- testing::Bool()
201
- ))
195
+ GPU_PERF_TEST_P (ImagePair_Depth_GraySource, OpticalFlowPyrLKSparse,
196
+ testing::Combine (
197
+ testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
198
+ testing::Values(CV_8U, CV_16U),
199
+ testing::Bool()
200
+ ))
202
201
{
203
202
declare.time (60 );
204
203
@@ -287,11 +286,11 @@ PERF_TEST_P(ImagePair_Depth_GraySource, OpticalFlowPyrLKSparse,
287
286
288
287
DEF_PARAM_TEST (ImagePair_Depth, string_pair, perf::MatDepth);
289
288
290
- PERF_TEST_P (ImagePair_Depth, OpticalFlowFarneback,
291
- testing::Combine (
292
- testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
293
- testing::Values(CV_8U, CV_16U)
294
- ))
289
+ GPU_PERF_TEST_P (ImagePair_Depth, OpticalFlowFarneback,
290
+ testing::Combine (
291
+ testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
292
+ testing::Values(CV_8U, CV_16U)
293
+ ))
295
294
{
296
295
declare.time (500 );
297
296
@@ -384,15 +383,15 @@ void calcOpticalFlowBM(const cv::Mat& prev, const cv::Mat& curr,
384
383
385
384
DEF_PARAM_TEST (ImagePair_BlockSize_ShiftSize_MaxRange, string_pair, cv::Size , cv::Size , cv::Size );
386
385
387
- PERF_TEST_P (ImagePair_BlockSize_ShiftSize_MaxRange, OpticalFlowBM,
388
- testing::Combine (
389
- testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
390
- testing::Values(cv::Size (16 , 16 )),
391
- testing::Values(cv::Size (2 , 2 )),
392
- testing::Values(cv::Size (16 , 16 ))
393
- ))
386
+ GPU_PERF_TEST_P (ImagePair_BlockSize_ShiftSize_MaxRange, OpticalFlowBM,
387
+ testing::Combine (
388
+ testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
389
+ testing::Values(cv::Size (16 , 16 )),
390
+ testing::Values(cv::Size (2 , 2 )),
391
+ testing::Values(cv::Size (16 , 16 ))
392
+ ))
394
393
{
395
- declare.time (1000 );
394
+ declare.time (3000 );
396
395
397
396
const string_pair fileNames = std::tr1::get<0 >(GetParam ());
398
397
const cv::Size block_size = std::tr1::get<1 >(GetParam ());
@@ -435,15 +434,15 @@ PERF_TEST_P(ImagePair_BlockSize_ShiftSize_MaxRange, OpticalFlowBM,
435
434
SANITY_CHECK (0 );
436
435
}
437
436
438
- PERF_TEST_P (ImagePair_BlockSize_ShiftSize_MaxRange, FastOpticalFlowBM,
439
- testing::Combine (
440
- testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
441
- testing::Values(cv::Size (16 , 16 )),
442
- testing::Values(cv::Size (1 , 1 )),
443
- testing::Values(cv::Size (16 , 16 ))
444
- ))
437
+ GPU_PERF_TEST_P (ImagePair_BlockSize_ShiftSize_MaxRange, FastOpticalFlowBM,
438
+ testing::Combine (
439
+ testing::Values (string_pair(" im1_1280x800.jpg" , " im2_1280x800.jpg" )),
440
+ testing::Values(cv::Size (16 , 16 )),
441
+ testing::Values(cv::Size (1 , 1 )),
442
+ testing::Values(cv::Size (16 , 16 ))
443
+ ))
445
444
{
446
- declare.time (1000 );
445
+ declare.time (3000 );
447
446
448
447
const string_pair fileNames = std::tr1::get<0 >(GetParam ());
449
448
const cv::Size block_size = std::tr1::get<1 >(GetParam ());
0 commit comments