1 | initial version |
You must detect first
Ptr<Feature2D> b;
vector<KeyPoint> keyImg1; /*<! keypoint for img1 */
Mat descImg1; /*<! Descriptor for img1 and img2 */
b = ORB::create();
b->detect(img1, keyImg1, Mat());
b->compute(img1, keyImg1, descImg1);
2 | No.2 Revision |
You must detect first
Ptr<Feature2D> b;
vector<KeyPoint> keyImg1; /*<! keypoint for img1 */
Mat descImg1; /*<! Descriptor for img1 and img2 */
b = ORB::create();
b->detect(img1, keyImg1, Mat());
b->compute(img1, keyImg1, descImg1);