【发布时间】:2015-09-10 13:54:19
【问题描述】:
我正在使用 openCv、FAST 特征检测和蛮力匹配在立体图像之间进行特征匹配。
FastFeatureDetector detector(threshold);
detector.detect(img1, keypoints1);
detector.detect(img2, keypoints2);
OrbDescriptorExtractor extractor;
extractor.compute(img1, keypoints1, descriptors1);
extractor.compute(img2, keypoints2, descriptors2);
BFMatcher matcher(NORM_L2);
matcher.match(descriptors1, descriptors2, matches);
不过我想做的是,使用光流跟踪左帧上的点,然后使用特征匹配匹配右帧上的点。
是否可以向特征匹配函数提供您希望匹配的点的像素坐标?
【问题讨论】:
-
您在代码中的何处插入“光流跟踪”?在“FastFeatureDetector”之前还是在 FastFeatureDetector 和 OrbDescriptorExtractor 之间?
-
目前在特征检测之前,但我没有将跟踪点链接到提取器,因为我不确定如何......
标签: c++ opencv feature-detection feature-extraction opticalflow