保存
mat res;
FileStorage fs("C:\\Users\\Administrator\\Desktop\\xun\\ex.xml", FileStorage::WRITE);
fs << "ex" << res;
fs.release();
读取
FileStorage fs("C:\\Users\\Administrator\\Desktop\\xun\\ex.xml", FileStorage::READ);
Mat mat_vocabulary;
fs["ex"] >> mat_vocabulary;
`
``