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
a25c443d
Commit
a25c443d
authored
Nov 09, 2017
by
elenagvo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add perf test for boxFilter CV8U to CV16U
parent
c2c73331
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
perf_blur.cpp
modules/imgproc/perf/perf_blur.cpp
+25
-0
No files found.
modules/imgproc/perf/perf_blur.cpp
View file @
a25c443d
...
...
@@ -43,6 +43,9 @@ typedef perf::TestBaseWithParam<Size_MatType_BorderType3x3_t> Size_MatType_Borde
typedef
std
::
tr1
::
tuple
<
Size
,
MatType
,
BorderType
>
Size_MatType_BorderType_t
;
typedef
perf
::
TestBaseWithParam
<
Size_MatType_BorderType_t
>
Size_MatType_BorderType
;
typedef
std
::
tr1
::
tuple
<
Size
,
int
,
BorderType3x3
>
Size_ksize_BorderType_t
;
typedef
perf
::
TestBaseWithParam
<
Size_ksize_BorderType_t
>
Size_ksize_BorderType
;
PERF_TEST_P
(
Size_MatType_BorderType3x3
,
gaussianBlur3x3
,
testing
::
Combine
(
testing
::
Values
(
szODD
,
szQVGA
,
szVGA
,
sz720p
),
...
...
@@ -134,6 +137,28 @@ PERF_TEST_P(Size_MatType_BorderType3x3, box3x3,
SANITY_CHECK
(
dst
,
1e-6
,
ERROR_RELATIVE
);
}
PERF_TEST_P
(
Size_ksize_BorderType
,
box_CV8U_CV16U
,
testing
::
Combine
(
testing
::
Values
(
szODD
,
szQVGA
,
szVGA
,
sz720p
),
testing
::
Values
(
3
,
5
,
15
),
BorderType3x3
::
all
()
)
)
{
Size
size
=
get
<
0
>
(
GetParam
());
int
ksize
=
get
<
1
>
(
GetParam
());
BorderType3x3
btype
=
get
<
2
>
(
GetParam
());
Mat
src
(
size
,
CV_8UC1
);
Mat
dst
(
size
,
CV_16UC1
);
declare
.
in
(
src
,
WARMUP_RNG
).
out
(
dst
);
TEST_CYCLE
()
boxFilter
(
src
,
dst
,
CV_16UC1
,
Size
(
ksize
,
ksize
),
Point
(
-
1
,
-
1
),
false
,
btype
);
SANITY_CHECK
(
dst
,
1e-6
,
ERROR_RELATIVE
);
}
PERF_TEST_P
(
Size_MatType_BorderType3x3
,
box3x3_inplace
,
testing
::
Combine
(
testing
::
Values
(
szODD
,
szQVGA
,
szVGA
,
sz720p
),
...
...
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