c – 在OpenCV 3.0中计算密集SIFT功能

c – 在OpenCV 3.0中计算密集SIFT功能,第1张

概述从3.0版开始,DenseFeatureDetector不再可用.有人可以告诉我如何在OpenCV 3.0中计算密集SIFT功能吗?我在文档中找不到它. 非常感谢你提前! 以下是我在OpenCV 3 C中使用密集SIFT的方法: SiftDescriptorExtractor sift;vector<KeyPoint> keypoints; // keypoint storageMat de 从3.0版开始,DenseFeatureDetector不再可用.有人可以告诉我如何在OpenCV 3.0中计算密集SIFT功能吗?我在文档中找不到它.

非常感谢你提前!

解决方法 以下是我在OpenCV 3 C中使用密集SIFT的方法:
SiftDescriptorExtractor sift;vector<KeyPoint> keypoints; // keypoint storageMat descriptors; // descriptor storage// manual keypoint grIDint step = 10; // 10 pixels spacing between kp'sfor (int y=step; y<img.rows-step; y+=step){    for (int x=step; x<img.cols-step; x+=step){        // x,y,radius        keypoints.push_back(KeyPoint(float(x),float(y),float(step)));    }}// compute descriptorssift.compute(img,keypoints,descriptors);

复制自:
http://answers.opencv.org/question/73165/compute-dense-sift-features-in-opencv-30/?answer=73178#post-id-73178

似乎运作良好

总结

以上是内存溢出为你收集整理的c – 在OpenCV 3.0中计算密集SIFT功能全部内容,希望文章能够帮你解决c – 在OpenCV 3.0中计算密集SIFT功能所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/1249956.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-07
下一篇2022-06-07

发表评论

登录后才能评论

评论列表(0条)

    保存