• Advertisement
Sign in to follow this  

Bad RGB values reading from TIFF

This topic is 4613 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

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

Share this post


Link to post
Share on other sites
Advertisement
It turns out I was reading the c9olor values in in the wrong order. Dumb mistake. Sorry!

Onnel

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement