Recommended Posts

I'm using libgfx (http://graphics.cs.uiuc.edu/~garland/software/libgfx.html) and libtiff to read in a tiff image and it's been working fine (I can display the images without a problem).
Reading exact pixel values (I'm using the .tiff as a mask) however, I am getting some incorrect values. For example, the majority of an image is green (0,255,0) but there is a thin line of dark red (128,0,0). For a pixel right next to the dark red which in the image is pure green, I am getting (128,255,0), as if there was some aliasing going on.
The pixel value in the image is definitely correct (the image is not aliased) so it would seem to be occurring during the reading of the image or in the RGB lookup.
Any ideas?
Thanks!
Onnel