I have extracted SIFT features in (opencv open source) and they are extracted as keypoints. Now, I would like to convert them to Matrix (With their x,y coordinates) or save them in a text file...
Here, you can see a sample code for extracting the keypoints and now I would like to know how convert them to MAT or save them in txt, xml or yaml...
cv::SiftFeatureDetector detector; std::vector<:keypoint> keypoints; detector.detect(input, keypoints);