title: Can you assign 3 channel image data to QCustomPlots ColorMap function?
body: <p>I'm working on a program for image processing. At the present stage I split a CV_64FC3 into 3 colour channels, RGB, then use this as the data for a QCPColorMap.</p>
  
  <p>The implementation is like this:</p>
  
  <pre><code>for(int col = 0; col &lt; image.cols; ++col) {
      for(int row = 0; row &lt; image.rows; row++) {
            colorMap-&gt;data()-&gt;setCell(row,col,rotated_matrix.at&lt;double&gt;(row,col));
      }
   }
  </code></pre>
  
  <p>Where <code>rotated_matrix</code> is a CV_64FC1 cv::Mat. This works fine and displays the colour map accordingly.</p>
  
  <p>My question is can I pass through a 3 channel cv::Mat <code>(CV_64FC3)</code> and assign this to the data points in the QCPColorMap?</p>
  
  <p>I've had a look at the <a href="http://www.qcustomplot.com/documentation/classQCPColorMap.html" rel="nofollow">documentation</a> and as far as I can see the only variables that <code>colorMap-&gt;data()-&gt;setCell</code> or <code>colorMap-&gt;data()-&gt;setData</code> can accept are <code>keyIndex, valueIndex, z</code> which represent essentially x coordinate, y coordinate and then the colour value itself.</p>
  
  <p>I can't seem to find a way to modify the number of channels/layers in the image to assign.</p>
  
  <p>Am I missing something here?</p>
  
  <p>Cheers
  Mitch</p>