Skip to content

Instantly share code, notes, and snippets.

@donalmacc
Created November 22, 2012 23:38
Show Gist options
  • Select an option

  • Save donalmacc/4133334 to your computer and use it in GitHub Desktop.

Select an option

Save donalmacc/4133334 to your computer and use it in GitHub Desktop.
RGB from Grayscale Image
//Create an RGB image from a grayscale image. Grayscale is grayScaleImage
result_image = cvCreateImage(cvGetSize(grayScaleImage),IPL_DEPTH_8U, 3);
cvMerge(grayScaleImage, grayScaleImage, grayScaleImage, NULL, result_image);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment