标签:
surf特征点keypoint转化成mat类型或存储起来的办法
std::vector<cv::KeyPoint> keypoints;
std::vector<cv::Point2f> points;
std::vector<cv::KeyPoint>::iterator it;
for( it= keypoints.begin(); it!= keypoints.end();it++)
{
points.push_back(it->pt);
}
cv::Mat pointmatrix(points);
Write to filestorage is
cv::FileStorage fs("test.yml", cv::FileStorage::WRITE);
cv::FileStorage fs2("test2.xml", cv::FileStorage::WRITE);
detector.write(fs);
detector.write(fs2);
surf特征点keypoint转化成mat类型或存储起来的办法
标签:
原文地址:http://blog.csdn.net/junshen1314/article/details/44960831