Jump to content
  • Advertisement
Sign in to follow this  
onnel

Bad RGB values reading from TIFF

This topic is 4883 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!