Search:

Type: Posts; User: amac

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    5,982

    I want to store the average hue, saturation, and...

    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...
  2. Replies
    9
    Views
    5,982

    I'm not sure I see the problem here. They are...

    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

    ...
  3. Replies
    9
    Views
    5,982

    Since sizeof(unsigned char) = 1 (at least on my...

    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...
  4. Replies
    9
    Views
    5,982

    Memory Allocation Problems

    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...
Results 1 to 4 of 4