Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
9d294cbc
Commit
9d294cbc
authored
Mar 06, 2015
by
Vladislav Vinogradov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix performance tests in tiny mode
parent
f1bec940
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
10 deletions
+94
-10
perf_core.cpp
modules/gpu/perf/perf_core.cpp
+0
-0
perf_features2d.cpp
modules/gpu/perf/perf_features2d.cpp
+25
-10
perf_filters.cpp
modules/gpu/perf/perf_filters.cpp
+8
-0
perf_imgproc.cpp
modules/gpu/perf/perf_imgproc.cpp
+56
-0
gpu_perf.hpp
modules/ts/include/opencv2/ts/gpu_perf.hpp
+5
-0
No files found.
modules/gpu/perf/perf_core.cpp
View file @
9d294cbc
This diff is collapsed.
Click to expand it.
modules/gpu/perf/perf_features2d.cpp
View file @
9d294cbc
...
...
@@ -145,9 +145,14 @@ PERF_TEST_P(Image_NFeatures, Features2D_ORB,
DEF_PARAM_TEST
(
DescSize_Norm
,
int
,
NormType
);
PERF_TEST_P
(
DescSize_Norm
,
Features2D_BFMatch
,
Combine
(
Values
(
64
,
128
,
256
),
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
),
NormType
(
cv
::
NORM_HAMMING
))))
PERF_TEST_P
(
DescSize_Norm
,
Features2D_BFMatch
,
Combine
(
Values
(
64
,
128
,
256
),
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
NormType
(
cv
::
NORM_L2
),
NormType
(
cv
::
NORM_HAMMING
))
#else
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
),
NormType
(
cv
::
NORM_HAMMING
))
#endif
))
{
declare
.
time
(
20.0
);
...
...
@@ -202,10 +207,15 @@ static void toOneRowMatches(const std::vector< std::vector<cv::DMatch> >& src, s
DEF_PARAM_TEST
(
DescSize_K_Norm
,
int
,
int
,
NormType
);
PERF_TEST_P
(
DescSize_K_Norm
,
Features2D_BFKnnMatch
,
Combine
(
Values
(
64
,
128
,
256
),
Values
(
2
,
3
),
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
))))
PERF_TEST_P
(
DescSize_K_Norm
,
Features2D_BFKnnMatch
,
Combine
(
Values
(
64
,
128
,
256
),
Values
(
2
,
3
),
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
NormType
(
cv
::
NORM_L2
))
#else
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
))
#endif
))
{
declare
.
time
(
30.0
);
...
...
@@ -257,9 +267,14 @@ PERF_TEST_P(DescSize_K_Norm, Features2D_BFKnnMatch,
//////////////////////////////////////////////////////////////////////
// BFRadiusMatch
PERF_TEST_P
(
DescSize_Norm
,
Features2D_BFRadiusMatch
,
Combine
(
Values
(
64
,
128
,
256
),
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
))))
PERF_TEST_P
(
DescSize_Norm
,
Features2D_BFRadiusMatch
,
Combine
(
Values
(
64
,
128
,
256
),
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
NormType
(
cv
::
NORM_L2
))
#else
Values
(
NormType
(
cv
::
NORM_L1
),
NormType
(
cv
::
NORM_L2
))
#endif
))
{
declare
.
time
(
30.0
);
...
...
modules/gpu/perf/perf_filters.cpp
View file @
9d294cbc
...
...
@@ -87,7 +87,11 @@ PERF_TEST_P(Sz_Type_KernelSz, Filters_Blur,
//////////////////////////////////////////////////////////////////////
// Sobel
#ifdef OPENCV_TINY_GPU_MODULE
PERF_TEST_P
(
Sz_Type_KernelSz
,
Filters_Sobel
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
Values
(
CV_8UC1
,
CV_8UC4
,
CV_32FC1
),
Values
(
3
,
5
,
7
)))
#else
PERF_TEST_P
(
Sz_Type_KernelSz
,
Filters_Sobel
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
Values
(
CV_8UC1
,
CV_8UC4
,
CV_32FC1
),
Values
(
3
,
5
,
7
,
9
,
11
,
13
,
15
)))
#endif
{
declare
.
time
(
20.0
);
...
...
@@ -154,7 +158,11 @@ PERF_TEST_P(Sz_Type, Filters_Scharr, Combine(GPU_TYPICAL_MAT_SIZES, Values(CV_8U
//////////////////////////////////////////////////////////////////////
// GaussianBlur
#ifdef OPENCV_TINY_GPU_MODULE
PERF_TEST_P
(
Sz_Type_KernelSz
,
Filters_GaussianBlur
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
Values
(
CV_8UC1
,
CV_8UC4
,
CV_32FC1
),
Values
(
3
,
5
,
7
)))
#else
PERF_TEST_P
(
Sz_Type_KernelSz
,
Filters_GaussianBlur
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
Values
(
CV_8UC1
,
CV_8UC4
,
CV_32FC1
),
Values
(
3
,
5
,
7
,
9
,
11
,
13
,
15
)))
#endif
{
declare
.
time
(
20.0
);
...
...
modules/gpu/perf/perf_imgproc.cpp
View file @
9d294cbc
...
...
@@ -93,9 +93,17 @@ DEF_PARAM_TEST(Sz_Depth_Cn_Inter_Border_Mode, cv::Size, MatDepth, MatCn, Interpo
PERF_TEST_P
(
Sz_Depth_Cn_Inter_Border_Mode
,
ImgProc_Remap
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
)),
#else
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
),
Interpolation
(
cv
::
INTER_CUBIC
)),
#endif
ALL_BORDER_MODES
,
RemapMode
::
all
()))
{
...
...
@@ -145,9 +153,17 @@ DEF_PARAM_TEST(Sz_Depth_Cn_Inter_Scale, cv::Size, MatDepth, MatCn, Interpolation
PERF_TEST_P
(
Sz_Depth_Cn_Inter_Scale
,
ImgProc_Resize
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
)),
#else
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
),
Interpolation
(
cv
::
INTER_CUBIC
)),
#endif
Values
(
0.5
,
0.3
,
2.0
)))
{
declare
.
time
(
20.0
);
...
...
@@ -189,7 +205,11 @@ DEF_PARAM_TEST(Sz_Depth_Cn_Scale, cv::Size, MatDepth, MatCn, double);
PERF_TEST_P
(
Sz_Depth_Cn_Scale
,
ImgProc_ResizeArea
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
Values
(
0.2
,
0.1
,
0.05
)))
{
...
...
@@ -232,9 +252,17 @@ DEF_PARAM_TEST(Sz_Depth_Cn_Inter_Border, cv::Size, MatDepth, MatCn, Interpolatio
PERF_TEST_P
(
Sz_Depth_Cn_Inter_Border
,
ImgProc_WarpAffine
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
)),
#else
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
),
Interpolation
(
cv
::
INTER_CUBIC
)),
#endif
ALL_BORDER_MODES
))
{
declare
.
time
(
20.0
);
...
...
@@ -282,9 +310,17 @@ PERF_TEST_P(Sz_Depth_Cn_Inter_Border, ImgProc_WarpAffine,
PERF_TEST_P
(
Sz_Depth_Cn_Inter_Border
,
ImgProc_WarpPerspective
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
)),
#else
Values
(
Interpolation
(
cv
::
INTER_NEAREST
),
Interpolation
(
cv
::
INTER_LINEAR
),
Interpolation
(
cv
::
INTER_CUBIC
)),
#endif
ALL_BORDER_MODES
))
{
declare
.
time
(
20.0
);
...
...
@@ -332,7 +368,11 @@ DEF_PARAM_TEST(Sz_Depth_Cn_Border, cv::Size, MatDepth, MatCn, BorderMode);
PERF_TEST_P
(
Sz_Depth_Cn_Border
,
ImgProc_CopyMakeBorder
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
,
ALL_BORDER_MODES
))
{
...
...
@@ -374,7 +414,11 @@ DEF_PARAM_TEST(Sz_Depth_Op, cv::Size, MatDepth, ThreshOp);
PERF_TEST_P
(
Sz_Depth_Op
,
ImgProc_Threshold
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
,
CV_64F
),
#endif
ThreshOp
::
all
()))
{
const
cv
::
Size
size
=
GET_PARAM
(
0
);
...
...
@@ -674,7 +718,11 @@ DEF_PARAM_TEST(Image_AppertureSz_L2gradient, string, int, bool);
PERF_TEST_P
(
Image_AppertureSz_L2gradient
,
ImgProc_Canny
,
Combine
(
Values
(
"perf/800x600.png"
,
"perf/1280x1024.png"
,
"perf/1680x1050.png"
),
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
3
),
#else
Values
(
3
,
5
),
#endif
Bool
()))
{
const
string
fileName
=
GET_PARAM
(
0
);
...
...
@@ -1302,7 +1350,11 @@ PERF_TEST_P(Sz_Depth_Cn_Inter, ImgProc_Rotate,
PERF_TEST_P
(
Sz_Depth_Cn
,
ImgProc_PyrDown
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
))
{
const
cv
::
Size
size
=
GET_PARAM
(
0
);
...
...
@@ -1338,7 +1390,11 @@ PERF_TEST_P(Sz_Depth_Cn, ImgProc_PyrDown,
PERF_TEST_P
(
Sz_Depth_Cn
,
ImgProc_PyrUp
,
Combine
(
GPU_TYPICAL_MAT_SIZES
,
#ifdef OPENCV_TINY_GPU_MODULE
Values
(
CV_8U
,
CV_32F
),
#else
Values
(
CV_8U
,
CV_16U
,
CV_32F
),
#endif
GPU_CHANNELS_1_3_4
))
{
const
cv
::
Size
size
=
GET_PARAM
(
0
);
...
...
modules/ts/include/opencv2/ts/gpu_perf.hpp
View file @
9d294cbc
...
...
@@ -50,8 +50,13 @@
namespace
perf
{
#ifdef OPENCV_TINY_GPU_MODULE
#define ALL_BORDER_MODES testing::Values(BorderMode(cv::BORDER_REFLECT101), BorderMode(cv::BORDER_REPLICATE), BorderMode(cv::BORDER_CONSTANT), BorderMode(cv::BORDER_REFLECT))
#define ALL_INTERPOLATIONS testing::Values(Interpolation(cv::INTER_NEAREST), Interpolation(cv::INTER_LINEAR), Interpolation(cv::INTER_AREA))
#else
#define ALL_BORDER_MODES BorderMode::all()
#define ALL_INTERPOLATIONS Interpolation::all()
#endif
CV_ENUM
(
BorderMode
,
BORDER_REFLECT101
,
BORDER_REPLICATE
,
BORDER_CONSTANT
,
BORDER_REFLECT
,
BORDER_WRAP
)
CV_ENUM
(
Interpolation
,
INTER_NEAREST
,
INTER_LINEAR
,
INTER_CUBIC
,
INTER_AREA
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment