43
#ifndef __OPENCV_XFEATURES2D_CUDA_HPP__
44
#define __OPENCV_XFEATURES2D_CUDA_HPP__
46
#include "opencv2/core/cuda.hpp"
48
namespace
cv
{
namespace
cuda {
104
explicit
SURF_CUDA(
double
_hessianThreshold,
int
_nOctaves=4,
105
int
_nOctaveLayers=2,
bool
_extended=
false,
float
_keypointsRatio=0.01f,
bool
_upright =
false);
117
CV_WRAP
static
Ptr<SURF_CUDA>
create(
double
_hessianThreshold,
int
_nOctaves = 4,
118
int
_nOctaveLayers = 2,
bool
_extended =
false,
float
_keypointsRatio = 0.01f,
bool
_upright =
false);
121
CV_WRAP
int
descriptorSize()
const;
123
CV_WRAP
int
defaultNorm()
const;
128
CV_WRAP
void
downloadKeypoints(
const
GpuMat& keypointsGPU, CV_OUT std::vector<KeyPoint>& keypoints);
147
bool
useProvidedKeypoints =
false);
156
(*this)(img, mask, keypoints);
159
void
operator()(
const
GpuMat& img,
const
GpuMat& mask, std::vector<KeyPoint>& keypoints);
160
void
operator()(
const
GpuMat& img,
const
GpuMat& mask, std::vector<KeyPoint>& keypoints,
GpuMat& descriptors,
161
bool
useProvidedKeypoints =
false);
171
CV_WRAP
inline
void
detectWithDescriptors(
const
GpuMat& img,
const
GpuMat& mask, CV_OUT
GpuMat& keypoints, CV_OUT
GpuMat& descriptors,
172
bool
useProvidedKeypoints =
false) {
173
(*this)(img, mask, keypoints, descriptors, useProvidedKeypoints);
176
void
operator()(
const
GpuMat& img,
const
GpuMat& mask, std::vector<KeyPoint>& keypoints, std::vector<float>& descriptors,
177
bool
useProvidedKeypoints =
false);
179
void
releaseMemory();
182
CV_PROP
double
hessianThreshold;
183
CV_PROP
int
nOctaves;
184
CV_PROP
int
nOctaveLayers;
185
CV_PROP
bool
extended;
186
CV_PROP
bool
upright;
189
CV_PROP
float
keypointsRatio;
191
GpuMat
sum, mask1, maskSum;
Base storage class for GPU memory with reference counting.
Definition:
core/cuda.hpp:106
Class used for extracting Speeded Up Robust Features (SURF) from an image. :
Definition:
xfeatures2d/cuda.hpp:87
SURF_CUDA(double _hessianThreshold, int _nOctaves=4, int _nOctaveLayers=2, bool _extended=false, float _keypointsRatio=0.01f, bool _upright=false)
the full constructor taking all the necessary parameters
void operator()(const GpuMat &img, const GpuMat &mask, GpuMat &keypoints)
void operator()(const GpuMat &img, const GpuMat &mask, GpuMat &keypoints, GpuMat &descriptors, bool useProvidedKeypoints=false)
void downloadDescriptors(const GpuMat &descriptorsGPU, std::vector< float > &descriptors)
download descriptors from device to host memory
SURF_CUDA()
the default constructor
void uploadKeypoints(const std::vector< KeyPoint > &keypoints, GpuMat &keypointsGPU)
upload host keypoints to device memory
CV_EXPORTS_W Scalar trace(InputArray mtx)
Returns the trace of a matrix.
"black box" representation of the file storage associated with a file on disk.
Definition:
aruco.hpp:75
Definition:
cvstd_wrapper.hpp:74