关于".xml"文件读入矩阵信息转vector中保存
FileStorage fs(filename1, FileStorage::WRITE);
fs << "pointBuf" << "[" ;
fs << pointBuf;
fs << "]";
上段代码是将信息存入,xml文件
FileNode n1 = fs1["pointBuf"];
FileNodeIterator it1 = n1.begin(), it_end1 = n1.end();
for (; it1 != it_end1; ++it1)
{
cout << (string)*it1 << endl;
}
下面这段代码是再将信息读入
现有问题如下:
如何针对上面读入的信息放置到vector<keypoint>keypoints_1中?求方法