title: Cannot convert Gray to BGR in OpenCV
body: <p>Following is a snippet of a simple code to convert a grayscale image to RGB using <code>cvCvtColor</code> function in OpenCV.</p>
  
  <pre><code>input = cvLoadImage("test.jpg", CV_LOAD_IMAGE_GRAYSCALE);
  output = cvCreateImage(cvSize(input-&gt;width, input-&gt;height), 8, 3);
  cvCvtColor(input, output, CV_GRAY2BGR);
  cvSaveImage("output.jpg", output);
  </code></pre>
  
  <p>Where test.jpg is a grayscale image.</p>
  
  <p>But it doesn`t seem to be working properly, because output.jpg i.e the final output also is grayscale, same as the input itself. Why so ?</p>
  
  <p>Any kind of help would be highly appreciated. Thanks in advance ! </p>