1

我得到了坐标和大小,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);
4

0 回答 0