title: Print multidimensional Mat in OpenCV (C++)
body: <p>In the OpenCV Tutorial </p>
  
  <p><a href="http://docs.opencv.org/master/d6/d6d/tutorial_mat_the_basic_image_container.html" rel="nofollow noreferrer">http://docs.opencv.org/master/d6/d6d/tutorial_mat_the_basic_image_container.html</a></p>
  
  <p>is the following example for creating a Mat.</p>
  
  <pre><code>int sz[3] = {2,2,2};
  Mat L(3,sz, CV_8UC(1), Scalar::all(0));
  </code></pre>
  
  <p>This works fine, but when i try to print the Mat my programm crashes. </p>
  
  <pre><code>cout &lt;&lt; "L = " &lt;&lt; endl &lt;&lt; " " &lt;&lt; L &lt;&lt; endl &lt;&lt; endl;
  </code></pre>
  
  <p>Why doesn't this work ? 
  Is there a way to do this without loops or splitting the Mat L ?</p>