colorize image
what is the formula for colorizing an image? I tried converting to grayscale then multiplying by the color, but that doesn''t give 100% accurate results. And I can''t find any resources on this either.
you must a HSL or HSB color scheme. L or B stands for luminance or brightness, it''s the same afaik and represents your greyscale level. Just set the saturation and hue, the brightness comes your pixel value. Convert your HSB triplet to a RGB and voilà !
Some code there :
http://www.bobpowell.net/RGBHSB.htm
This is something to read if you are into colors tricks :
http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
Some code there :
http://www.bobpowell.net/RGBHSB.htm
This is something to read if you are into colors tricks :
http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
What a bad post, I forgot half of the words. sorry..corrected version below
You must USE a HSL or HSB color scheme. L or B stands for luminance or brightness, it''s the same afaik and represents your greyscale level. Just set the saturation and hue, the brightness comes FROM your pixel value. Convert your HSB triplet to a RGB and voilà !
Some code there :
http://www.bobpowell.net/RGBHSB.htm
This is something to read if you are into colors tricks :
http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
Just type in google "hsb hsl" and you''ll find a lot of ressources...
You must USE a HSL or HSB color scheme. L or B stands for luminance or brightness, it''s the same afaik and represents your greyscale level. Just set the saturation and hue, the brightness comes FROM your pixel value. Convert your HSB triplet to a RGB and voilà !
Some code there :
http://www.bobpowell.net/RGBHSB.htm
This is something to read if you are into colors tricks :
http://www.poynton.com/notes/colour_and_gamma/ColorFAQ.html
Just type in google "hsb hsl" and you''ll find a lot of ressources...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement