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
c18d1ee2
Commit
c18d1ee2
authored
Feb 04, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SURF kind of works (let's see if the tests pass)
parent
8d5e9522
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
12 deletions
+8
-12
ocl.hpp
modules/core/include/opencv2/core/ocl.hpp
+1
-1
surf.cl
modules/nonfree/src/opencl/surf.cl
+0
-0
surf.cpp
modules/nonfree/src/surf.cpp
+1
-1
surf.hpp
modules/nonfree/src/surf.hpp
+6
-10
surf.ocl.cpp
modules/nonfree/src/surf.ocl.cpp
+0
-0
No files found.
modules/core/include/opencv2/core/ocl.hpp
View file @
c18d1ee2
...
...
@@ -585,7 +585,7 @@ class CV_EXPORTS Image2D
{
public
:
Image2D
();
Image2D
(
const
UMat
&
src
);
explicit
Image2D
(
const
UMat
&
src
);
~
Image2D
();
void
*
ptr
()
const
;
...
...
modules/nonfree/src/opencl/surf.cl
View file @
c18d1ee2
This diff is collapsed.
Click to expand it.
modules/nonfree/src/surf.cpp
View file @
c18d1ee2
...
...
@@ -902,7 +902,7 @@ void SURF::operator()(InputArray _img, InputArray _mask,
bool
doDescriptors
=
_descriptors
.
needed
();
CV_Assert
(
!
_img
.
empty
()
&&
CV_MAT_DEPTH
(
imgtype
)
==
CV_8U
&&
(
imgcn
==
1
||
imgcn
==
3
||
imgcn
==
4
));
CV_Assert
(
_descriptors
.
needed
()
&&
!
useProvidedKeypoints
);
CV_Assert
(
_descriptors
.
needed
()
||
!
useProvidedKeypoints
);
if
(
ocl
::
useOpenCL
()
)
{
...
...
modules/nonfree/src/surf.hpp
View file @
c18d1ee2
...
...
@@ -54,14 +54,11 @@ protected:
bool
setImage
(
InputArray
img
,
InputArray
mask
);
// kernel callers declarations
bool
calcLayerDetAndTrace
(
UMat
&
det
,
UMat
&
trace
,
int
octave
,
int
layer_rows
);
bool
calcLayerDetAndTrace
(
int
octave
,
int
layer_rows
);
bool
findMaximaInLayer
(
const
UMat
&
det
,
const
UMat
&
trace
,
UMat
&
maxPosBuffer
,
UMat
&
maxCounter
,
int
counterOffset
,
int
octave
,
int
layer_rows
,
int
layer_cols
);
bool
findMaximaInLayer
(
int
counterOffset
,
int
octave
,
int
layer_rows
,
int
layer_cols
);
bool
interpolateKeypoint
(
const
UMat
&
det
,
const
UMat
&
maxPosBuffer
,
int
maxCounter
,
UMat
&
keypoints
,
UMat
&
counters
,
int
octave
,
int
layer_rows
,
int
maxFeatures
);
bool
interpolateKeypoint
(
int
maxCounter
,
UMat
&
keypoints
,
int
octave
,
int
layer_rows
,
int
maxFeatures
);
bool
calcOrientation
(
UMat
&
keypoints
);
...
...
@@ -75,7 +72,7 @@ protected:
int
refcount
;
//! max keypoints = min(keypointsRatio * img.size().area(), 65535)
UMat
sum
,
mask1
,
maskSum
,
intBuffer
;
UMat
sum
,
intBuffer
;
UMat
det
,
trace
;
UMat
maxPosBuffer
;
...
...
@@ -87,12 +84,11 @@ protected:
UMat
img
,
counters
;
// texture buffers
ocl
::
Image2D
imgTex
,
sumTex
,
maskSumTex
;
ocl
::
Image2D
imgTex
,
sumTex
;
bool
haveImageSupport
;
String
kerOpts
;
int
status
;
ocl
::
Kernel
kerCalcDetTrace
,
kerFindMaxima
,
kerFindMaximaMask
,
kerInterp
;
ocl
::
Kernel
kerUpRight
,
kerOri
,
kerCalcDesc64
,
kerCalcDesc128
,
kerNormDesc64
,
kerNormDesc128
;
};
/*
...
...
modules/nonfree/src/surf.ocl.cpp
View file @
c18d1ee2
This diff is collapsed.
Click to expand it.
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