如果对灰度图进行色彩赋值,会得到怎么样的图片?
工具/原料
1
电脑
2
Mathematica
方法/步骤
1
给出如下图片:
2
分离色彩,得到一张灰度图:pic=ColorSeparate[img][[2]]
3
把图片转化为数据:data = ImageData[pic];用ArrayPlot绘制像素图:
4
采用Hue赋值的色相(彩色)图:ArrayPlot[data,ColorFunction -> Hue]
5
ArrayPlot[1-data,ColorFunction -> Hue]
6
ArrayPlot[data^2,ColorFunction -> Hue]
7
ArrayPlot[1-data^2,ColorFunction -> Hue]
8
ArrayPlot[(1-data)^2,ColorFunction -> Hue]
上一篇:如何画卡通奥特曼
下一篇:ps叠加色相怎么用?