问题描述
我有一个图像拼接代码,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 (将#修改为@)