title: how to create own matrix in openCV
body: <p>Hi in the following link <a href="http://www.prism.gatech.edu/~ahuaman3/docs/OpenCV_Docs/tutorials/basic_0/basic_0.html" rel="nofollow">http://www.prism.gatech.edu/~ahuaman3/docs/OpenCV_Docs/tutorials/basic_0/basic_0.html</a>  it is shown how to create a uniform matrix where all elements are 23.
  How can I create a matrix of</p>
  
  <pre><code>-1, -1, -1, -1, -1, -1, -1, 
   0, 0, 0, 0, 0, 0, 0, 
   2, 2, 2, 2, 2, 2, 2, 
   2, 2, 2, 2, 2, 2, 2, 
   2, 2, 2, 2, 2, 2, 2, 
   0, 0, 0, 0, 0, 0, 0, 
   -1, -1, -1, -1, -1, -1, -1, 
  </code></pre>
  
  <p>in openCV. I want the user to input the no. of rows of 2. How I can do that?</p>