title: Converting image from Triclops into opencv RGB image Mat.
body: <p>I want to use OpenCV to do some processing on rectified images from the Bumblebee2 camera. I am using FlyCapture2 and Triclops to grab images from the sensor and rectify them. I want to convert the TriclopsColorImage into a cv::Mat to use with OpenCV.</p>
  
  <p>From the TriclopsColorImage object I can get the following:</p>
  
  <pre><code>int nrows; // The number of rows in the image
  int ncols; //The number of columns in the image
  int rowinc; //The row increment of the image
  unsigned char * blue; //pixel data for the blue band of the image
  unsigned char * red;  //pixel data for the red band of the image
  unsigned char * green; //pixel data for the green band of the image
  </code></pre>
  
  <p>I don't know how to convert this information into a cv::Mat image so that I can work on it. Can someone please point me in the right direction? </p>