Naive impl. Slower than CPU

This commit is contained in:
Matthias Bady
2013-12-19 00:15:53 +01:00
parent 388d0ef182
commit 69d034ecdf
4 changed files with 358 additions and 0 deletions

View File

@@ -1546,6 +1546,26 @@ namespace cv
int calcKeypointsOCL(const oclMat& img, const oclMat& mask, int maxKeypoints);
int nonmaxSupressionOCL(oclMat& keypoints);
};
////////////////////////////////// BRIEF Feature Descriptor //////////////////////////////////
class CV_EXPORTS BRIEF_OCL
{
public:
static const int PATCH_SIZE = 48;
static const int KERNEL_SIZE = 9;
explicit BRIEF_OCL( int _bytes = 32 );
/*
* Compute the descriptors for a set of keypoints in an image.
* image The image.
* keypoints The input keypoints. Keypoints for which a descriptor cannot be computed are removed.
* descriptors Copmputed descriptors. Row i is the descriptor for keypoint i.
*/
void compute( const oclMat& image, oclMat& keypoints, oclMat& descriptors ) const;
protected:
int bytes;
};
/////////////////////////////// PyrLKOpticalFlow /////////////////////////////////////