首页 > 解决方案 > SIFT 检测到的关键点数量非常少

问题描述

我有一个图像拼接代码,SIFT 用于检测关键点。当我使用从互联网下载的图像时,关键点的数量非常好。但是当我使用相机拍摄的图像时,关键点的数量非常糟糕。这是我检测关键点的代码。有什么问题?

> Ptr<SIFT> detector = SIFT::create(0,3,-1,5,2.6); //0,3,-1,5,0.6   
> std::vector <KeyPoint> kp1, kp2;    
> Mat descriptors1, descriptors2;
> detector -> detectAndCompute (imageA, noArray(), kp1, descriptors1);    
> detector -> detectAndCompute (imageB, noArray(),kp2, descriptors2);    
> //Ptr<DescriptorMatcher> matcher = BFMatcher::create();    
> Ptr<DescriptorMatcher> matcher = DescriptorMatcher::create(DescriptorMatcher::FLANNBASED);   

标签: opencvsiftimage-stitching

解决方案


推荐阅读