将图像转换为渐变图像 [英] convert an image into gradient image

查看:94
本文介绍了将图像转换为渐变图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事图像处理方面的研究工作.我是这个领域的新手.因此,请给我一个将普通的.jpg图像转换为渐变图像的想法.但是条件不是在Java中使用内置方法.


请帮助我........

谢谢...

I am doing research work in Image Processing. I am new to this field. So Please give me an idea to convert a normal .jpg image into gradient image. But condition is not using built-in methods in java.


Please help me........

Thank You...

推荐答案


您尝试过吗?: http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale [ ^ ]
假设您在RGB公式中具有像素颜色以实现亮度非常简单:(11*R + 16*G + 5*B) /32

希望对您有帮助,
L
Hi,
Have you tried this?: http://en.wikipedia.org/wiki/Grayscale#Converting_color_to_grayscale[^]
Provided you have pixel colors in RGB formula for luminance is quite simple: (11*R + 16*G + 5*B) /32

Hope it helps,
L


这篇关于将图像转换为渐变图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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