OPENCV下使用ORB+FLANN
出现unsupported format or combination of formats(type 0)in cv::flann::buildIndex_
查询后发现时ORB得出的descriptors数据格式与flann的数据格式不相符。
在使用compute(frame,keypoints,descriptors);后加入一句descriptors.convertTo(descriptors,CV_32F);即可。
查看下关于FLANN的源码,这里算是不求甚解啦~
参考链接
http://answers.opencv.org/question/59996/flann-error-in-opencv-3/
https://stackoverflow.com/questions/23634730/opencv-flann-matcher-crashes#
https://blog.youkuaiyun.com/u014686356/article/details/52300995
本文介绍了解决OpenCV中ORB特征描述符与FLANN匹配器格式不兼容的问题。通过将ORB产生的描述符从默认格式转换为FLANN所需的32位浮点数格式,可以避免出现“unsupportedformatorcombinationofformats”错误。
1531

被折叠的 条评论
为什么被折叠?



