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
b5c4355c
Commit
b5c4355c
authored
Jun 19, 2015
by
Seon-Wook Park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spatialGradient: Add basic perf test
parent
f9c4c966
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
perf_spatialgradient.cpp
modules/imgproc/perf/perf_spatialgradient.cpp
+34
-0
No files found.
modules/imgproc/perf/perf_spatialgradient.cpp
0 → 100644
View file @
b5c4355c
#include "perf_precomp.hpp"
using
namespace
std
;
using
namespace
cv
;
using
namespace
perf
;
using
namespace
testing
;
using
std
::
tr1
::
make_tuple
;
using
std
::
tr1
::
get
;
typedef
std
::
tr1
::
tuple
<
Size
,
int
>
Size_Ksize_t
;
typedef
perf
::
TestBaseWithParam
<
Size_Ksize_t
>
Size_Ksize
;
PERF_TEST_P
(
Size_Ksize
,
spatialGradient
,
Combine
(
SZ_ALL_HD
,
Values
(
3
)
)
)
{
Size
size
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
int
ksize
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
Mat
src
(
size
,
CV_8UC1
);
Mat
dx
(
size
,
CV_16SC1
);
Mat
dy
(
size
,
CV_16SC1
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dx
,
dy
);
TEST_CYCLE
()
spatialGradient
(
src
,
dx
,
dy
,
ksize
);
SANITY_CHECK
(
dx
);
SANITY_CHECK
(
dy
);
}
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