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
c6f666a0
Commit
c6f666a0
authored
Dec 29, 2016
by
Yakun Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BufferPool is used for temporary buffer, use mat create directly
parent
5fad2a3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
filtering.cpp
modules/cudafilters/src/filtering.cpp
+3
-7
No files found.
modules/cudafilters/src/filtering.cpp
View file @
c6f666a0
...
...
@@ -1100,13 +1100,9 @@ namespace
// Note - these are hardcoded in the actual GPU kernel. Do not change these values.
int
histSize
=
256
,
histCoarseSize
=
8
;
int
devHistCols
=
src
.
cols
*
histSize
*
partitions
,
devCoarseHistCols
=
src
.
cols
*
histCoarseSize
*
partitions
;
if
(
devHist
.
empty
()
||
devCoarseHist
.
empty
()
||
devHist
.
cols
!=
devHistCols
||
devCoarseHist
.
cols
!=
devCoarseHistCols
)
{
BufferPool
pool
(
_stream
);
devHist
=
pool
.
getBuffer
(
1
,
devHistCols
,
CV_32SC1
);
devCoarseHist
=
pool
.
getBuffer
(
1
,
devCoarseHistCols
,
CV_32SC1
);
}
devHist
.
create
(
1
,
src
.
cols
*
histSize
*
partitions
,
CV_32SC1
);
devCoarseHist
.
create
(
1
,
src
.
cols
*
histCoarseSize
*
partitions
,
CV_32SC1
);
devHist
.
setTo
(
0
,
_stream
);
devCoarseHist
.
setTo
(
0
,
_stream
);
...
...
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