title: addWeighted in OpenCV
body: <p>I came across the function <a href="http://docs.opencv.org/modules/core/doc/operations_on_arrays.html" rel="nofollow">addWeighted</a> in OpenCV, where it was mentioned that it:</p>
  
  <pre><code>Calculates the weighted sum of two arrays.
  </code></pre>
  
  <p>Does that mean we multiply the pixels in the first array by some weight, and likewise to the second array, and then simply some the relevant pixel values together?</p>
  
  <p>Thanks.</p>