title: Adding a scalar to a Mat object
body: <p>So I'm trying to add a scalar value to all elements of a Mat object in openCV, however for raw_t_ubit8 and raw_t_ubit16 types I get wrong results. Here's the code.</p>
  
  <pre><code>Mat A;
  //Initialize Mat A; 
  A = A + 0.1; 
  </code></pre>
  
  <p>The Matrix is initially 
  <a href="https://i.stack.imgur.com/bco4Y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bco4Y.png" alt="enter image description here"></a></p>
  
  <p>The result of the addition is exactly the same matrix. This problem does not occur when I try to add scalars to raw_t_real types of matrices. By raw_t_ubit8 I mean the depth is CV_8UC1 </p>