title: OpenCV - Color correction
body: <p>Using OpenCV.</p>
  
  <p>I have an RGB image, each value is a float.
  I also have a standard color correction matrix 3x4.</p>
  
  <p>What would be the <strong>fastest</strong> way to 'apply' this matrix over the image?</p>
  
  <p>If you don't know color correction... This is a simple matrix operation.</p>
  
  <p>If the Image looks like this (each pixel is 3 floats):</p>
  
  <pre><code>R G B
  R G B
  R G B
  R G B
  R G B
  .
  .
  .
  </code></pre>
  
  <p>Then I would like to perform the following:</p>
  
  <pre><code>1 R G B     [ A1, A2, A3 ] 
  1 R G B     [ R1, R2, R3 ]
  1 R G B  *  [ G1, G2, G3 ]
  1 R G B     [ B1, B2, B3 ]
  1 R G B
  .
  .
  .
  </code></pre>
  
  <p>All the values in the 3x4 matrix are constants.</p>
  
  <p>Thanks.</p>