如何解决SIFT检测到的关键点数量非常少
我有一个图像拼接代码,SIFT 用于检测关键点。当我使用从互联网下载的图像时,关键点的数量非常好。但是当我使用相机拍摄的图像时,关键点的数量非常糟糕。这是我检测关键点的代码。有什么问题?
> Ptr<SIFT> detector = SIFT::create(0,3,-1,5,2.6); //0,0.6
> std::vector <KeyPoint> kp1,kp2;
> Mat descriptors1,descriptors2;
> detector -> detectAndCompute (imageA,noArray(),kp1,descriptors1);
> detector -> detectAndCompute (imageB,kp2,descriptors2);
> //Ptr<DescriptorMatcher> matcher = BFMatcher::create();
> Ptr<DescriptorMatcher> matcher = DescriptorMatcher::create(DescriptorMatcher::FLANNBASED);
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。