我在写CV中图片拼接过程中,有段代码如下:
//特征点描述,为特征点匹配做准备
OrbDescriptorExtractor orbDescriptor;
vector<Mat> imagesDesc;
for (int i = 0; i < cvt_s_imgs.size(); i++)
{
Mat imageDesc;
orbDescriptor.compute(cvt_s_imgs[i], keyPoints[i], imageDesc);
imagesDesc.push_back(imageDesc);
}
flann::Index flannIndex(imagesDesc[0], flann::LshIndexParams(12, 20