OpenCV  2.4.13
Open Source Computer Vision
cv::gpu::FAST_GPU Class Reference

#include <gpu.hpp>

Public Types

enum  { LOCATION_ROW = 0, RESPONSE_ROW, ROWS_COUNT }
 

Public Member Functions

 FAST_GPU (int threshold, bool nonmaxSuppression=true, double keypointsRatio=0.05)
 
void operator() (const GpuMat &image, const GpuMat &mask, GpuMat &keypoints)
 
void operator() (const GpuMat &image, const GpuMat &mask, std::vector< KeyPoint > &keypoints)
 
void downloadKeypoints (const GpuMat &d_keypoints, std::vector< KeyPoint > &keypoints)
 download keypoints from device to host memory More...
 
void convertKeypoints (const Mat &h_keypoints, std::vector< KeyPoint > &keypoints)
 convert keypoints to KeyPoint vector More...
 
void release ()
 release temporary buffer's memory More...
 
int calcKeyPointsLocation (const GpuMat &image, const GpuMat &mask)
 
int getKeyPoints (GpuMat &keypoints)
 

Public Attributes

bool nonmaxSuppression
 
int threshold
 
double keypointsRatio
 max keypoints = keypointsRatio * img.size().area() More...
 

Static Public Attributes

static const int FEATURE_SIZE = 7
 

Member Enumeration Documentation

anonymous enum
Enumerator
LOCATION_ROW 
RESPONSE_ROW 
ROWS_COUNT 

Constructor & Destructor Documentation

cv::gpu::FAST_GPU::FAST_GPU ( int  threshold,
bool  nonmaxSuppression = true,
double  keypointsRatio = 0.05 
)
explicit

Member Function Documentation

int cv::gpu::FAST_GPU::calcKeyPointsLocation ( const GpuMat image,
const GpuMat mask 
)

find keypoints and compute it's response if nonmaxSuppression is true return count of detected keypoints

void cv::gpu::FAST_GPU::convertKeypoints ( const Mat h_keypoints,
std::vector< KeyPoint > &  keypoints 
)

convert keypoints to KeyPoint vector

void cv::gpu::FAST_GPU::downloadKeypoints ( const GpuMat d_keypoints,
std::vector< KeyPoint > &  keypoints 
)

download keypoints from device to host memory

int cv::gpu::FAST_GPU::getKeyPoints ( GpuMat keypoints)

get final array of keypoints performs nonmax suppression if needed return final count of keypoints

void cv::gpu::FAST_GPU::operator() ( const GpuMat image,
const GpuMat mask,
GpuMat keypoints 
)

finds the keypoints using FAST detector supports only CV_8UC1 images

void cv::gpu::FAST_GPU::operator() ( const GpuMat image,
const GpuMat mask,
std::vector< KeyPoint > &  keypoints 
)
void cv::gpu::FAST_GPU::release ( )

release temporary buffer's memory

Member Data Documentation

const int cv::gpu::FAST_GPU::FEATURE_SIZE = 7
static
double cv::gpu::FAST_GPU::keypointsRatio

max keypoints = keypointsRatio * img.size().area()

bool cv::gpu::FAST_GPU::nonmaxSuppression
int cv::gpu::FAST_GPU::threshold

The documentation for this class was generated from the following file: