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
43c48e2e
Commit
43c48e2e
authored
Oct 19, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: update Div and ConvertScaleAbs perf tests
parent
ee4b78fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
perf_arithm.cpp
modules/core/perf/opencl/perf_arithm.cpp
+14
-2
No files found.
modules/core/perf/opencl/perf_arithm.cpp
View file @
43c48e2e
...
...
@@ -193,9 +193,21 @@ OCL_PERF_TEST_P(DivFixture, Divide,
UMat
src1
(
srcSize
,
type
),
src2
(
srcSize
,
type
),
dst
(
srcSize
,
type
);
declare
.
in
(
src1
,
src2
,
WARMUP_RNG
).
out
(
dst
);
// remove zeros from src2
{
Mat
m2
=
src2
.
getMat
(
ACCESS_RW
);
Mat
zero_mask
=
m2
==
0
;
Mat
fix
;
zero_mask
.
convertTo
(
fix
,
type
);
// 0 or 255
cv
::
add
(
m2
,
fix
,
m2
);
}
OCL_TEST_CYCLE
()
cv
::
divide
(
src1
,
src2
,
dst
);
SANITY_CHECK
(
dst
,
1e-6
,
ERROR_RELATIVE
);
if
(
CV_MAT_DEPTH
(
type
)
>=
CV_32F
)
SANITY_CHECK
(
dst
,
1e-6
,
ERROR_RELATIVE
);
else
SANITY_CHECK
(
dst
,
1
);
}
///////////// Absdiff ////////////////////////
...
...
@@ -983,7 +995,7 @@ OCL_PERF_TEST_P(ConvertScaleAbsFixture, ConvertScaleAbs,
OCL_TEST_CYCLE
()
cv
::
convertScaleAbs
(
src
,
dst
,
0.5
,
2
);
SANITY_CHECK
(
dst
);
SANITY_CHECK
(
dst
,
1
);
// CV_8U
}
///////////// PatchNaNs ////////////////////////
...
...
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