Naive impl. Slower than CPU
This commit is contained in:
@@ -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 /////////////////////////////////////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user