Sign in to follow this  
onnel

Bad RGB values reading from TIFF

Recommended Posts

onnel    124
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this