Search code examples
opencvimage-processingimagemagickimage-manipulationimagemagick-convert

Gray scale image to color


enter image description hereIs there a way to convert a gray-scale image to a colour image?

Here's a few JPG examples

  1. Photo 1
  2. Photo 2
  3. Photo 3

ImageMagick is powerful but doesn't seem capable of converting to a colourful version.


Solution

  • Unfortunately this is not possible. Grayscale images do not contain sufficient information to create a color image. In instances where you see B&W/Grayscale images converted to color, this has been done manually in an application such as photoshop.

    You can use imagemagick to apply a filter but you cannot re-introduce color. http://www.imagemagick.org/Usage/color_mods/#level-colors