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
6e471530
Commit
6e471530
authored
Dec 20, 2013
by
Matthias Bady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added documentation
parent
74dfa668
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
58 additions
and
8 deletions
+58
-8
feature_detection_and_description.rst
modules/ocl/doc/feature_detection_and_description.rst
+52
-0
ocl.hpp
modules/ocl/include/opencv2/ocl.hpp
+6
-8
No files found.
modules/ocl/doc/feature_detection_and_description.rst
View file @
6e471530
...
@@ -450,7 +450,59 @@ Gets final array of keypoints.
...
@@ -450,7 +450,59 @@ Gets final array of keypoints.
The function performs non-max suppression if needed and returns the final amount of keypoints.
The function performs non-max suppression if needed and returns the final amount of keypoints.
ocl::BRIEF_OCL
------------------
.. ocv:class:: ocl::BRIEF_OCL
Class for computing BRIEF descriptors described in a paper of Calonder M., Lepetit V.,
Strecha C., Fua P. *BRIEF: Binary Robust Independent Elementary Features* ,
11th European Conference on Computer Vision (ECCV), Heraklion, Crete. LNCS Springer, September 2010. ::
class CV_EXPORTS BRIEF_OCL
{
public:
static const int PATCH_SIZE = 48;
static const int KERNEL_SIZE = 9;
explicit BRIEF_OCL(int _bytes = 32);
//!computes the brief descriptor for a set of given keypoints
//! supports only CV_8UC1 images
void compute(const oclMat& image, const oclMat& keypoints, oclMat& mask, oclMat& descriptors) const;
static int getBorderSize();
protected:
...
};
ocl::BRIEF_OCL::BRIEF_OCL
--------------------------
Constructor.
.. ocv:function:: ocl::BRIEF_OCL::BRIEF_OCL(int bytes = 32)
:param bytes: The length of the descriptor in bytes. Supported values are 16, 32 or 64 bytes.
ocl::BRIEF_OCL::compute
------------------------
Computes BRIEF descriptors.
.. ocv:function:: void ocl::BRIEF_OCL::compute(const oclMat& image, const oclMat& keypoints, oclMat& mask, oclMat& descriptors) const
:param image: Image The input 8-bit grayscale image.
:param keypoints: The keypoints.
:param mask: In and output mask. If mask has same cols as keypoints, descriptors are computed for keypoints with non-zero mask element.
On return it indicates for what keypoints a descriptor was computed or not(if a keypoint is near the image border).
:param descriptors: The computed descriptors. It has size keypoints.cols x bytes.
ocl::BRIEF_OCL::getBorderSize
-----------------------------
Returns the size of the image border where descriptors cannot be computed
.. ocv:function:: static int ocl::BRIEF_OCL::getBorderSize() const
ocl::HOGDescriptor
ocl::HOGDescriptor
----------------------
----------------------
...
...
modules/ocl/include/opencv2/ocl.hpp
View file @
6e471530
...
@@ -1546,22 +1546,20 @@ namespace cv
...
@@ -1546,22 +1546,20 @@ namespace cv
int
calcKeypointsOCL
(
const
oclMat
&
img
,
const
oclMat
&
mask
,
int
maxKeypoints
);
int
calcKeypointsOCL
(
const
oclMat
&
img
,
const
oclMat
&
mask
,
int
maxKeypoints
);
int
nonmaxSupressionOCL
(
oclMat
&
keypoints
);
int
nonmaxSupressionOCL
(
oclMat
&
keypoints
);
};
};
////////////////////////////////// BRIEF Feature Descriptor //////////////////////////////////
////////////////////////////////// BRIEF Feature Descriptor //////////////////////////////////
class
CV_EXPORTS
BRIEF_OCL
class
CV_EXPORTS
BRIEF_OCL
{
{
public
:
public
:
static
const
int
PATCH_SIZE
=
48
;
static
const
int
PATCH_SIZE
=
48
;
static
const
int
KERNEL_SIZE
=
9
;
static
const
int
KERNEL_SIZE
=
9
;
explicit
BRIEF_OCL
(
int
_bytes
=
32
);
explicit
BRIEF_OCL
(
int
_bytes
=
32
);
/*
//!computes the brief descriptor for a set of given keypoints
* Compute the descriptors for a set of keypoints in an image.
//! supports only CV_8UC1 images
* image The image.
void
compute
(
const
oclMat
&
image
,
const
oclMat
&
keypoints
,
oclMat
&
mask
,
oclMat
&
descriptors
)
const
;
* keypoints The input keypoints.
* descriptors Copmputed descriptors. Row i is the descriptor for keypoint i.
*/
void
compute
(
const
oclMat
&
image
,
const
oclMat
&
keypoints
,
oclMat
&
mask
,
oclMat
&
descriptors
)
const
;
static
int
getBorderSize
();
static
int
getBorderSize
();
protected
:
protected
:
...
...
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