I want to store the average hue, saturation, and intensity of each column. There are info.width columns of pixels in an image.
*EDIT*
I think I solved the problem. My avrgb function was not...
Type: Posts; User: amac
I want to store the average hue, saturation, and intensity of each column. There are info.width columns of pixels in an image.
*EDIT*
I think I solved the problem. My avrgb function was not...
I'm not sure I see the problem here. They are unsigned longs, but their product is just a number I pass to malloc(), specifically the number of bytes I want allocated. I tried replacing the
...
Since sizeof(unsigned char) = 1 (at least on my coumputer/compiler/whatever), I left off the sizeof(unsigned char) part in malloc(). Haha, yeah, the code looks fine in the post editing window but...
Hi everybody,
I'm writing a program that generates a music score for a program called CSound. My code reads in a 24 bit bitmap, converts pixels from RGB to HSI color space, and then translates the...