From 9b89b0e3f2c0667d68118eb39f0b2a863c6ebe11 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Sun, 13 Jan 2013 11:24:04 -0500 Subject: [PATCH] xml format now propagates metadata --- sdk/plugins/format.cpp | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/sdk/plugins/format.cpp b/sdk/plugins/format.cpp index 72e2416..daf901b 100644 --- a/sdk/plugins/format.cpp +++ b/sdk/plugins/format.cpp @@ -165,6 +165,13 @@ class xmlFormat : public Format Mat m = imdecode(Mat(1, byteArray.size(), CV_8UC1, byteArray.data()), CV_LOAD_IMAGE_ANYDEPTH); if (!m.data) qWarning("xmlFormat::read failed to decode image data."); t.append(m); + } else if ((e.tagName() == "RELEASE_IMG") || + (e.tagName() == "PREBOOK_IMG") || + (e.tagName() == "LPROFILE") || + (e.tagName() == "RPROFILE")) { + // Ignore these other image fields for now + } else { + t.file.insert(e.tagName(), e.text()); } fileNode = fileNode.nextSibling(); -- libgit2 0.21.4