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
7dd666e4
Commit
7dd666e4
authored
Sep 02, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3181 from akarsakov:ocl_mul_scale_test_fix
parents
a125cd6c
ec827bed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
test_arithm.cpp
modules/core/test/ocl/test_arithm.cpp
+9
-3
No files found.
modules/core/test/ocl/test_arithm.cpp
View file @
7dd666e4
...
@@ -175,9 +175,12 @@ PARAM_TEST_CASE(ArithmTestBase, MatDepth, Channels, bool)
...
@@ -175,9 +175,12 @@ PARAM_TEST_CASE(ArithmTestBase, MatDepth, Channels, bool)
UMAT_UPLOAD_OUTPUT_PARAMETER
(
dst2
);
UMAT_UPLOAD_OUTPUT_PARAMETER
(
dst2
);
}
}
void
Near
(
double
threshold
=
0.
)
void
Near
(
double
threshold
=
0.
,
bool
relative
=
false
)
{
{
OCL_EXPECT_MATS_NEAR
(
dst1
,
threshold
);
if
(
!
relative
)
OCL_EXPECT_MATS_NEAR
(
dst1
,
threshold
);
else
OCL_EXPECT_MATS_NEAR_RELATIVE
(
dst1
,
threshold
);
}
}
void
Near1
(
double
threshold
=
0.
)
void
Near1
(
double
threshold
=
0.
)
...
@@ -341,7 +344,10 @@ OCL_TEST_P(Mul, Mat_Scalar_Scale)
...
@@ -341,7 +344,10 @@ OCL_TEST_P(Mul, Mat_Scalar_Scale)
OCL_OFF
(
cv
::
multiply
(
src1_roi
,
val
,
dst1_roi
,
val
[
0
]));
OCL_OFF
(
cv
::
multiply
(
src1_roi
,
val
,
dst1_roi
,
val
[
0
]));
OCL_ON
(
cv
::
multiply
(
usrc1_roi
,
val
,
udst1_roi
,
val
[
0
]));
OCL_ON
(
cv
::
multiply
(
usrc1_roi
,
val
,
udst1_roi
,
val
[
0
]));
Near
(
udst1_roi
.
depth
()
>=
CV_32F
?
1e-2
:
1
);
if
(
udst1_roi
.
depth
()
>=
CV_32F
)
Near
(
1e-6
,
true
);
else
Near
(
1
);
}
}
}
}
...
...
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