PDA

View Full Version : RGB to YIQ



Unregistered
January 8, 2004, 15:04:57
If I have a *.BMP pic. which is RGB24-bit. How can i convert it into YIQ format? Although I have the formula, I don't know how to manipulate the pixel value.. what should i do?

1. how to load the BMP into ram?
2. how to get a RGB value of a particular pixel(e.g. x=3, y=5)?
3. how to save the value back to form another BMP file?

any library that i can use or reference to?

Stefan Geissler
January 9, 2004, 10:11:48
Hello,

A good source for source codes of common problems is htttp:\\www.codeguru.com.

With the Windows API function “LoadImage()” you can load an image from file. Please refer to the MSDN library and search for “LoadImage”.
you can retrieve the properties of the loaded bitmap by calling the Windows API function “GetObject()“.

Stefan Geissler
January 13, 2004, 08:51:12
Hello,

I found another source, where you could get some help about image processing alghorithms:

Go to google, click on Groups, select comp and then sci.image.processing
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&group=sci.image.processing

also:

Go to google, click on Groups, select comp and then graphics.algorithm
http://groups.google.de/groups?hl=de&lr=&ie=UTF-8&group=comp.graphics.algorithms