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
5252aa8f
Commit
5252aa8f
authored
Mar 12, 2014
by
mlyashko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added data type check for back projection fix
parent
702a2a6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
histogram.cpp
modules/imgproc/src/histogram.cpp
+4
-0
No files found.
modules/imgproc/src/histogram.cpp
View file @
5252aa8f
...
@@ -2035,6 +2035,10 @@ static bool ocl_calcBackProject( InputArrayOfArrays _images, std::vector<int> ch
...
@@ -2035,6 +2035,10 @@ static bool ocl_calcBackProject( InputArrayOfArrays _images, std::vector<int> ch
Size
size
=
images
[
0
].
size
();
Size
size
=
images
[
0
].
size
();
int
depth
=
images
[
0
].
depth
();
int
depth
=
images
[
0
].
depth
();
//kernels are valid for this type only
if
(
depth
!=
CV_8U
)
return
false
;
for
(
size_t
i
=
1
;
i
<
nimages
;
++
i
)
for
(
size_t
i
=
1
;
i
<
nimages
;
++
i
)
{
{
const
UMat
&
m
=
images
[
i
];
const
UMat
&
m
=
images
[
i
];
...
...
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