Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

cheez_keeper

color reduction

This topic is 6110 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

if you have a .bmp loaded all the data is in RGB format with umteen thousand colors. I need to reduce the number of colors (and therefore the quality) of the image. I have to combine colors that are similar (so the image still looks proper). The way I think I can do this is find the intesity of the color or the greyscale value... or some kind of translation like that so you can sort the colors and find which colors can be combined... and to what color they can be combined to. ok so here is the problem, I don''t know any theroy behind color transformation. so if anyone out there knows of anyway to do anything related to this... please post. merry Xmas! happy new year! Brett Lynnes cheez_keeper@hotmail.com

Share this post


Link to post
Share on other sites
Advertisement
"Colour Quantization" is what you''re looking for:

http://www-dbv.informatik.uni-bonn.de/quant/
http://www.cubic.org/~submissive/sourcerer/octree.htm
http://www.cs.ubc.ca/spider/ladic/quantize.html

more via Google...

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
Also search MSDN for "colour quantization" and you''ll even find some source code to do it with .bmps in a Wicked Code article from 1996.

I just searched the version which comes with MSVC 6 Pro, you should be able to find the same article online at the msdn.microsoft.com site too.

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Share this post


Link to post
Share on other sites
from what depth are you going to? (ie 24 to 16? or to 8bit even?) does this need to be real time or is quality an issue?

Share this post


Link to post
Share on other sites
bit depth is independant. Example: a picture contains 4 colors red, royal blue, navy blue, and green. it needs to have 3 color therefore it gets reduced to red, dark blue, and green. As for the articles, thanks I will look em up tomorrow! thanks again!

Brett Lynnes
cheez_keeper@hotmail.com

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!