我如何将灰度图像转换为RGB图像(优化) [英] How i could convert a gray scale image into RGB image (optimization)

查看:436
本文介绍了我如何将灰度图像转换为RGB图像(优化)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Java中从灰色转换为RGB

推荐答案

当您保持R = G = B时,会得到所有的灰色阴影黑色到白色.因此,所需要做的就是将灰度值(您未指定分辨率)转换为等效数(具有更少或更多相关位,也未指定输出分辨率),然后将其分配给三个颜色分量. />
:)
when you keep R=G=B you get all shades of gray, from black to white. So all it takes is turning a gray value (you did not specify its resolution) to an equivalent number (with fewer or more relevant bits, you did not specify the output resolution either), then assigning that to the three color components.

:)


这篇关于我如何将灰度图像转换为RGB图像(优化)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆