StringBuilder sb = new StringBuilder();
(new XmlSerializer(typeof(Image<Bgr, Byte>))).Serialize(new StringWriter(sb), o);
XmlDocument xDoc = new XmlDocument();
xDoc.LoadXml(sb.ToString());
Emgu Image[Bgr, Byte] image to XmlDocument
最新推荐文章于 2021-01-23 10:24:09 发布
本文介绍了一种使用StringBuilder和XmlSerializer将Image对象序列化为XML字符串的方法,并展示了如何通过XmlDocument类从该字符串中反序列化出XML文档。
912

被折叠的 条评论
为什么被折叠?



