1 | initial version |
SurfDescriptorExtractor extractor;
Mat descriptors_1, descriptors_2;
extractor.compute( img_1, keypoints_1, descriptors_1 );
2 | No.2 Revision |
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 );