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
2ebf4e08
Commit
2ebf4e08
authored
Jan 25, 2018
by
LaurentBerger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
solve issue #10687
parent
a1d2258a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
histogram.cpp
modules/imgproc/src/histogram.cpp
+9
-8
No files found.
modules/imgproc/src/histogram.cpp
View file @
2ebf4e08
...
...
@@ -2449,17 +2449,18 @@ void cv::calcBackProject( InputArrayOfArrays images, const std::vector<int>& cha
double
scale
)
{
CV_INSTRUMENT_REGION
()
if
(
hist
.
dims
()
<=
2
)
{
#ifdef HAVE_OPENCL
Size
histSize
=
hist
.
size
();
bool
_1D
=
histSize
.
height
==
1
||
histSize
.
width
==
1
;
size_t
histdims
=
_1D
?
1
:
hist
.
dims
();
Size
histSize
=
hist
.
size
();
bool
_1D
=
histSize
.
height
==
1
||
histSize
.
width
==
1
;
size_t
histdims
=
_1D
?
1
:
hist
.
dims
();
#endif
CV_OCL_RUN
(
dst
.
isUMat
()
&&
hist
.
type
()
==
CV_32FC1
&&
histdims
<=
2
&&
ranges
.
size
()
==
histdims
*
2
&&
histdims
==
channels
.
size
(),
ocl_calcBackProject
(
images
,
channels
,
hist
,
dst
,
ranges
,
(
float
)
scale
,
histdims
))
CV_OCL_RUN
(
dst
.
isUMat
()
&&
hist
.
type
()
==
CV_32FC1
&&
histdims
<=
2
&&
ranges
.
size
()
==
histdims
*
2
&&
histdims
==
channels
.
size
(),
ocl_calcBackProject
(
images
,
channels
,
hist
,
dst
,
ranges
,
(
float
)
scale
,
histdims
))
}
Mat
H0
=
hist
.
getMat
(),
H
;
int
hcn
=
H0
.
channels
();
...
...
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