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