灰度图像到彩色 [英] Gray scale image to color
问题描述
是否可以将灰度图像转换为彩色图像?
Is there a way to convert a gray-scale image to a colour image?
这里有一些JPG示例
- Photo 1
- Photo 2
- Photo 3
ImageMagick 功能强大,但似乎无法转换为彩色版本.
ImageMagick is powerful but doesn't seem capable of converting to a colourful version.
推荐答案
不幸的是,这是不可能的.灰度图像没有足够的信息来创建彩色图像.在看到黑白图像/灰度图像转换为彩色图像的情况下,这是在诸如photoshop之类的应用程序中手动完成的.
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.
您可以使用imagemagick应用滤镜,但不能重新引入颜色. http://www.imagemagick.org/Usage/color_mods/#level-colors
You can use imagemagick to apply a filter but you cannot re-introduce color. http://www.imagemagick.org/Usage/color_mods/#level-colors
这篇关于灰度图像到彩色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!