Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  SurfDescriptorExtractor extractor;

Mat descriptors_1, descriptors_2;

extractor.compute( img_1, keypoints_1, descriptors_1 );

KeyPoint kp;   
// init keypoint with values here (coordinates, size, angle..)

vector<KeyPoint> keypoints;
keypoints.push_back(kp);

SurfDescriptorExtractor extractor;
Mat descriptors;
extractor.compute( img, keypoints, descriptors );

Mat descriptors_1, descriptors_2;

extractor.compute( img_1, keypoints_1, descriptors_1 );