title: How to get image width and height in OpenCV?
body: <p>I want to get image width and height, how can I do that in OpenCV?</p>
  
  <p>For example:</p>
  
  <pre><code>Mat src = imread("path_to_image");
  cout &lt;&lt; src.width;
  </code></pre>
  
  <p>Is that right?</p>