title: How to access/modify matrix element in OpenCV? Why at() is templatized?
body: <p>Should I know <code>Mat</code> element type for use <code>at()</code> correctly? For example, if I have</p>
  
  <pre><code>Mat rose = Mat(1,180, CV_64F, 0);
  </code></pre>
  
  <p>then can I call</p>
  
  <pre><code>rose.at&lt;short&gt;(i,j)++;
  </code></pre>
  
  <p>If not then which template argument should I use?</p>
  
  <p>Why <code>Mat::at</code> is templatized while <code>Mat</code> itself is not?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>This question contained sample code with another error, which is now here: <a href="https://stackoverflow.com/questions/17041758/how-to-fill-matrix-with-zeros-in-opencv">How to fill Matrix with zeros in OpenCV?</a></p>