opencv 常用程序(一)

来源:互联网 发布:金川集团公司网络学校 编辑:程序博客网 时间:2024/06/05 08:45

矩阵存储:

Mat RoiReImg;

RoiReImg = m_sResizeImg(m_sLSAlgRoi).clone();
//save the data of mat
FileStorage fs("RoiMat.xml", FileStorage::WRITE);
fs<<"RoiMat"<<RoiReImg;
fs.release();

矩阵读取:

Mat RoiReImg;

//read the data of mat
FileStorage fs("RoiMat.xml", FileStorage::READ);
fs[RoiMat]>>RoiReImg;

fs.release();

0 0
原创粉丝点击