Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
c4bec8a5
Commit
c4bec8a5
authored
Feb 13, 2015
by
Sh0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function cuda::integral() does not require an extra buffer any more.
parent
312c8fa7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cuda.hpp
modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp
+1
-1
surf.cuda.cpp
modules/xfeatures2d/src/surf.cuda.cpp
+2
-3
No files found.
modules/xfeatures2d/include/opencv2/xfeatures2d/cuda.hpp
View file @
c4bec8a5
...
...
@@ -152,7 +152,7 @@ public:
//! max keypoints = min(keypointsRatio * img.size().area(), 65535)
float
keypointsRatio
;
GpuMat
sum
,
mask1
,
maskSum
,
intBuffer
;
GpuMat
sum
,
mask1
,
maskSum
;
GpuMat
det
,
trace
;
...
...
modules/xfeatures2d/src/surf.cuda.cpp
View file @
c4bec8a5
...
...
@@ -146,13 +146,13 @@ namespace
bindImgTex
(
img
);
cuda
::
integral
(
img
,
surf_
.
sum
,
surf_
.
intBuffer
);
cuda
::
integral
(
img
,
surf_
.
sum
);
sumOffset
=
bindSumTex
(
surf_
.
sum
);
if
(
use_mask
)
{
cuda
::
min
(
mask
,
1.0
,
surf_
.
mask1
);
cuda
::
integral
(
surf_
.
mask1
,
surf_
.
maskSum
,
surf_
.
intBuffer
);
cuda
::
integral
(
surf_
.
mask1
,
surf_
.
maskSum
);
maskOffset
=
bindMaskSumTex
(
surf_
.
maskSum
);
}
}
...
...
@@ -425,7 +425,6 @@ void cv::cuda::SURF_CUDA::releaseMemory()
sum
.
release
();
mask1
.
release
();
maskSum
.
release
();
intBuffer
.
release
();
det
.
release
();
trace
.
release
();
maxPosBuffer
.
release
();
...
...
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