KeyPoint descriptor OpenCV

跟風遠走 提交于 2019-12-03 08:58:32

You're trying to computer ORB on the points (0,0) and (10,10), but they are too close to the image border, so ORB can't compute descriptors in those locations. ORB (as well as the other binary descriptors) filters them out.

EDIT: since you asked about usage, I'm editing the answer. You should pass the whole image. I use it as:

Ptr<FeatureDetector> detector = FeatureDetector::create(detector_name);
Ptr<DescriptorExtractor> descriptor = DescriptorExtractor::create(descriptor_name);

detector->detect(imgK, kp);
descriptor->compute(imgK, kp, desc);
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!