2017.06.09 20:18 "Re: [Tiff] Read and interpret 16 bit strip data with geo tiff", by Bob Friesenhahn
I appreciate your help. I tried your approach, but when I print it, it shows
"19" for the four values of p16[x].
For what I have read, this data might be an address, an index or the pixel
value, but still I don't know how to make sense of it.
I will appreciate if somebody can help me with this.
If it helps, it's SPOT 6 data.
Try using
printf("%u\n", p16[0] );
printf("%u\n", p16[1] );
printf("%u\n", p16[2] );
instead. This would print the original stored values.
If the image is quite dark, then the values may be small.
Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/