你好,我想實現快速特徵檢測器的代碼,在它的初始階段,我得到了以下錯誤比如在OpenCV的重載函數
(1)沒有重載函數「CV :: FastFeatureDetector的實例: :檢測」相匹配的參數列表
(2) 「KeyPointsToPoints」 未定義
請幫助我。
#include <stdio.h>
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/nonfree/nonfree.hpp"
using namespace cv;
int main()
{
Mat img1 = imread("0000.jpg", 1);
Mat img2 = imread("0001.jpg", 1);
// Detect keypoints in the left and right images
FastFeatureDetector detector(50);
Vector<KeyPoint> left_keypoints,right_keypoints;
detector.detect(img1, left_keypoints);
detector.detect(img2, right_keypoints);
vector<Point2f>left_points;
KeyPointsToPoints(left_keypoints,left_points);
vector<Point2f>right_points(left_points.size());
return 0;
}
你的OpenCV版本的文檔對'cv :: FastFeatureDetector :: detect'說了些什麼? – juanchopanza 2013-05-09 13:37:28