I have a few (actually a couple thousand) jpg images that have a color space of gray, but the program that I want to use them for requires that they be in rgb. Is there some way to convert the jpg from monochrome to rgb and still have it look the same (i.e. basically using rgb values to make a grayscale image).
I have the images as 2D matrices in MATLAB, and I've tried to use imwrite
to force the image to rgb by doing:
imwrite(image, 'rgb.jpg')
I thought this would work since the documentation for imwrite
says that jpg's should be in rgb, but I still get a monochrome image.