title: Mat::ones not working in OpenCV
body: <pre><code>int main () {    
  
      Mat A = Mat::ones(100, 100, CV_8U)*3;
      cout &lt;&lt; A.at&lt;int&gt;(0,0) &lt;&lt; endl;
  
      return 0;
  }
  </code></pre>
  
  <p>The output is a a very large number :: 50529027</p>
  
  <p>Can anyone help me out?? C++ code</p>