title: How do i get the size of a multi-dimensional cv::Mat? (Mat, or MatND)
body: <p>I am creating a multi-dimensional MAT object, and would like to get the size of the object - e.g.,</p>
  
  <pre><code>const int sz[] = {10,10,9};
  Mat temp(3,sz,CV_64F);
  std::cout &lt;&lt; "temp.dims = " &lt;&lt; temp.dims &lt;&lt; " temp.size = " &lt;&lt; temp.size() &lt;&lt; " temp.channels = " &lt;&lt; temp.channels() &lt;&lt; std::endl;
  </code></pre>
  
  <p>I believe the resulting MAT to be 10x10x9, and I'd like to confirm, but the COUT statement gives:</p>
  
  <p>temp.dims = 3 temp.size = [10 x 10] temp.channels = 1</p>
  
  <p>I was hoping to see either:</p>
  
  <p>temp.dims = 3 temp.size = [10 x 10 x 9] temp.channels = 1</p>
  
  <p>Or:</p>
  
  <p>temp.dims = 3 temp.size = [10 x 10] temp.channels = 9</p>
  
  <p>How can I get the dimensionality of this Mat object?  I didn't see any methods in Mat::Mat or MatND</p>