title: Opencv: how write a sequence of Mat in an xml using FileStorage
body: <p>i'm trying to store a sequence of Mat elements in an xml file. This is a sketch of my code</p>
  
  <pre><code>Mat SEQ[3];
  int nFrame = 0;
  while (1) {
      ...
      ...
      SEQ[nFrame] = dataAt_nFrame;
      if (nFrame == 2) break;
      }
  
  FileStorage fs("test.xml", FileStorage::WRITE);
  fs &lt;&lt; "dataSequence" &lt;&lt; SEQ;
  fs.release();
  
  cvReleaseCapture(&amp;video1);
  
  FileStorage fs2("test.xml", FileStorage::READ);
  Mat SEQ2[3];
  fs2["sequence"] &gt;&gt; SEQ2;
  
  //.... here i want print out the values in order to check if are the same i've written...
  fs2.release();
  </code></pre>
  
  <p>the while(1) analyzes a video, for each frame i obtain an "dataAt_nFrame" which is a Mat. I want to store the entire sequence of these data in an array SEQ (if you could suggest an alternative of the type Mat [] i'll prefer) and then be able to read them and pick each Mat for each frame number.</p>