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
5a3200d5
Commit
5a3200d5
authored
Apr 03, 2014
by
Andrey Pavlenko
Committed by
OpenCV Buildbot
Apr 03, 2014
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2567 from apavlenko:fix_compare_scalar
parents
9a3895d8
271f60ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
arithm.cpp
modules/core/src/arithm.cpp
+4
-5
No files found.
modules/core/src/arithm.cpp
View file @
5a3200d5
...
...
@@ -2621,12 +2621,11 @@ static bool ocl_compare(InputArray _src1, InputArray _src2, OutputArray _dst, in
int
type1
=
_src1
.
type
(),
depth1
=
CV_MAT_DEPTH
(
type1
),
cn
=
CV_MAT_CN
(
type1
),
type2
=
_src2
.
type
(),
depth2
=
CV_MAT_DEPTH
(
type2
);
if
(
!
haveScalar
)
{
if
(
(
!
doubleSupport
&&
depth1
==
CV_64F
)
||
!
_src1
.
sameSize
(
_src2
)
||
type1
!=
type2
)
if
(
!
doubleSupport
&&
depth1
==
CV_64F
)
return
false
;
if
(
!
haveScalar
&&
(
!
_src1
.
sameSize
(
_src2
)
||
type1
!=
type2
)
)
return
false
;
}
int
kercn
=
haveScalar
?
cn
:
ocl
::
predictOptimalVectorWidth
(
_src1
,
_src2
,
_dst
);
// Workaround for bug with "?:" operator in AMD OpenCL compiler
...
...
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