Created
November 22, 2012 23:38
-
-
Save donalmacc/4133334 to your computer and use it in GitHub Desktop.
RGB from Grayscale Image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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