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
cb687b9b
Commit
cb687b9b
authored
Dec 23, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added performance test for cv::dilate
parent
4fa9c5ae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
15 deletions
+27
-15
perf_morph.cpp
modules/imgproc/perf/perf_morph.cpp
+27
-15
No files found.
modules/imgproc/perf/perf_morph.cpp
View file @
cb687b9b
...
...
@@ -4,29 +4,41 @@ using namespace std;
using
namespace
cv
;
using
namespace
perf
;
#define TYPICAL_MAT_TYPES_MORPH CV_8UC1, CV_8UC4
#define TYPICAL_MATS_MORPH testing::Combine( SZ_ALL_GA, testing::Values( TYPICAL_MAT_TYPES_MORPH) )
/*
void erode( InputArray src, OutputArray dst, InputArray kernel,
Point anchor=Point(-1,-1), int iterations=1,
int borderType=BORDER_CONSTANT,
const Scalar& borderValue=morphologyDefaultBorderValue() );
*/
PERF_TEST_P
(
Size_MatType
,
erode1
,
TYPICAL_MATS_MORPH
)
#define TYPICAL_MAT_TYPES_MORPH CV_8UC1, CV_8UC4
#define TYPICAL_MATS_MORPH testing::Combine( SZ_ALL_GA, testing::Values( TYPICAL_MAT_TYPES_MORPH) )
PERF_TEST_P
(
Size_MatType
,
erode
,
TYPICAL_MATS_MORPH
)
{
Size
sz
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
Size
sz
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
int
type
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
Mat
src
(
sz
,
type
);
Mat
dst
(
sz
,
type
);
declare
.
in
(
src
,
WARMUP_RNG
);
declare
.
in
(
src
,
WARMUP_RNG
)
.
out
(
dst
)
;
TEST_CYCLE
(
100
)
{
erode
(
src
,
dst
,
Mat
());
}
{
erode
(
src
,
dst
,
noArray
());
}
SANITY_CHECK
(
dst
);
}
PERF_TEST_P
(
Size_MatType
,
dilate
,
TYPICAL_MATS_MORPH
)
{
Size
sz
=
std
::
tr1
::
get
<
0
>
(
GetParam
());
int
type
=
std
::
tr1
::
get
<
1
>
(
GetParam
());
Mat
src
(
sz
,
type
);
Mat
dst
(
sz
,
type
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
TEST_CYCLE
(
100
)
{
dilate
(
src
,
dst
,
noArray
());
}
SANITY_CHECK
(
dst
);
}
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