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
ba5dac2e
Commit
ba5dac2e
authored
Nov 01, 2013
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Nov 01, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1732 from alalek:ocl_blendLinear
parents
e7e6d9d6
3b293d68
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
test_blend.cpp
modules/ocl/test/test_blend.cpp
+8
-2
No files found.
modules/ocl/test/test_blend.cpp
View file @
ba5dac2e
...
...
@@ -103,7 +103,8 @@ PARAM_TEST_CASE(Blend, MatDepth, int, bool)
{
const
int
type
=
CV_MAKE_TYPE
(
depth
,
channels
);
const
double
upValue
=
1200
;
const
double
upValue
=
256
;
const
double
sumMinValue
=
0.01
;
// we don't want to divide by "zero"
Size
roiSize
=
randomSize
(
1
,
20
);
Border
src1Border
=
randomBorder
(
0
,
useRoi
?
MAX_VALUE
:
0
);
...
...
@@ -116,7 +117,12 @@ PARAM_TEST_CASE(Blend, MatDepth, int, bool)
randomSubMat
(
weights1
,
weights1_roi
,
roiSize
,
weights1Border
,
CV_32FC1
,
-
upValue
,
upValue
);
Border
weights2Border
=
randomBorder
(
0
,
useRoi
?
MAX_VALUE
:
0
);
randomSubMat
(
weights2
,
weights2_roi
,
roiSize
,
weights2Border
,
CV_32FC1
,
-
upValue
,
upValue
);
randomSubMat
(
weights2
,
weights2_roi
,
roiSize
,
weights2Border
,
CV_32FC1
,
sumMinValue
,
upValue
);
// fill it as a (w1 + w12)
weights2_roi
=
weights2_roi
-
weights1_roi
;
// check that weights2_roi is still a part of weights2 (not a new matrix)
CV_Assert
(
checkNorm
(
weights2_roi
,
weights2
(
Rect
(
weights2Border
.
lef
,
weights2Border
.
top
,
roiSize
.
width
,
roiSize
.
height
)))
<
1e-6
);
Border
dstBorder
=
randomBorder
(
0
,
useRoi
?
MAX_VALUE
:
0
);
randomSubMat
(
dst
,
dst_roi
,
roiSize
,
dstBorder
,
type
,
5
,
16
);
...
...
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