title: How to Access rows and columns of Vector<Mat> Images on Open cv for Android?
body: <p>I was going through some code on open cv using Android.Can any one show me how I am gonna access the rows and columns of a vector Mat of image?Its declared and the columns and rows are accessed as given below but i am having  errors like  and .</p>
  
  <pre><code>vector&lt;Mat&gt; images;//Vector of Mat image declared
  ...
  int im_width = images[0].cols;//its trying to access column of images matrix
  int im_height = images[0].rows;//trying to access rows of Mat images
  </code></pre>
  
  <p>If this is not the right way to access the columns and rows of a vector Image, then what is it?
  When it says images[0] its trying to access the index 0 of the vector of Mat images.I am not sure if this is right or not.</p>