title: How can i store and access images in Mat of opencv
body: <p>I am trying to use:</p>
  
  <pre><code>cv::Mat source;
  const int histSize[] = {intialframes, initialWidth, initialHeight};
  source.create(3, histSize, CV_8U);
  </code></pre>
  
  <p>for saving multiple images in one matrix. However when i do so, it gives me <code>dims = 3</code> and <code>-1</code> in <code>rows</code> and <code>cols</code>. 
  Is it correct? 
  If not what is the bug in it?
  if yes how can I access my images one by one?</p>