手动插入KeyPoints并获取其描述符OpenCV C ++

时间:2013-07-10 07:55:34

标签: c++ opencv keypoint feature-descriptor

我得到了keypoints的坐标和大小,并希望手动插入它们以获取它们的描述符,我尝试了以下但它不起作用:

Mat img1 = imread(imgPath1,CV_LOAD_IMAGE_GRAYSCALE);

float x,y;

x = getXCoord(coordList);

y = getYCoord(coordList);

vector < KeyPoint > keyPointRead;

keyPointRead.push_back(new KeyPoint(x,y,4,-1,0,0,-1)); // here is the problem i guess

Mat outputArray;

vector < KeyPoint > outputKeyPoints;

detector(img1,Mat(),keyPointRead,outputArray,true);

0 个答案:

没有答案