title: OpenCV: How to convert CV_8UC1 mat to CV_8UC3
body: <p>How to convert CV_8UC1 Mat to CV_8UC3 with OpenCV?</p>
  
  <pre><code>Mat dst;
  Mat src(height, width, CV_8UC1, (unsigned char*) captureClient-&gt;data());
  src.convertTo(dst, CV_8UC3);
  </code></pre>
  
  <p>but dst.channels() = 1</p>