Commit 9b89b0e3f2c0667d68118eb39f0b2a863c6ebe11

Authored by Josh Klontz
1 parent 0f7ff4d1

xml format now propagates metadata

Showing 1 changed file with 7 additions and 0 deletions
sdk/plugins/format.cpp
... ... @@ -165,6 +165,13 @@ class xmlFormat : public Format
165 165 Mat m = imdecode(Mat(1, byteArray.size(), CV_8UC1, byteArray.data()), CV_LOAD_IMAGE_ANYDEPTH);
166 166 if (!m.data) qWarning("xmlFormat::read failed to decode image data.");
167 167 t.append(m);
  168 + } else if ((e.tagName() == "RELEASE_IMG") ||
  169 + (e.tagName() == "PREBOOK_IMG") ||
  170 + (e.tagName() == "LPROFILE") ||
  171 + (e.tagName() == "RPROFILE")) {
  172 + // Ignore these other image fields for now
  173 + } else {
  174 + t.file.insert(e.tagName(), e.text());
168 175 }
169 176  
170 177 fileNode = fileNode.nextSibling();
... ...