Public Types | Public Member Functions | Public Attributes | Static Public Attributes
cv::gpu::FAST_GPU Class Reference

#include <gpu.hpp>

List of all members.

Public Types

enum  { LOCATION_ROW = 0, RESPONSE_ROW, ROWS_COUNT }

Public Member Functions

 FAST_GPU (int threshold, bool nonmaxSupression=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
void convertKeypoints (const Mat &h_keypoints, std::vector< KeyPoint > &keypoints)
 convert keypoints to KeyPoint vector
void release ()
 release temporary buffer's memory
int calcKeyPointsLocation (const GpuMat &image, const GpuMat &mask)
int getKeyPoints (GpuMat &keypoints)

Public Attributes

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

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  nonmaxSupression = true,
double  keypointsRatio = 0.05 
) [explicit]

Member Function Documentation

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::downloadKeypoints ( const GpuMat d_keypoints,
std::vector< KeyPoint > &  keypoints 
)

download keypoints from device to host memory

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

convert keypoints to KeyPoint vector

release temporary buffer's memory

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

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

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


Member Data Documentation

const int cv::gpu::FAST_GPU::FEATURE_SIZE = 7 [static]

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


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