cv::Mat中的数据按行列写入xml文件中并通过matlab读取

void writeMatToXML(const cv::Mat & mat, const std::string xmlName)
{
	FileStorage fs(xmlName, FileStorage::WRITE);
	fs << "Mat" << mat;
	fs.release();
}

猜你喜欢

转载自blog.csdn.net/qq_35608277/article/details/86745828