I am trying to generate "SIFT" descriptor (SIFT is only an example) for some manualy defined landmarks. When I try to do:
siftDetector(grayImage, Mat(), manualLandmarks, descriptors, true);
the result is always 0 (zero) for the descriptors. I have described manualLandmarks
as std::vector<cv::KeyPoint>
, and I have changed the x and y coordinates for each item in the vector (the size, octave and angle values are not changed).
Is there a way to define manualy the image coordinates and compute the descriptors for that location?
Thanks.