Click here to Skip to main content
15,887,979 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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...
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900