AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.07.11 18:47 "[Tiff] sampleper pixel", by Balint Radics
2004.07.11 18:57 "Re: [Tiff] sampleper pixel", by Frank Warmerdam
2004.07.12 09:01 "Re: [Tiff] sampleper pixel", by Balint Radics
2004.07.12 10:57 "RE: [Tiff] sampleper pixel", by
2004.07.12 15:46 "RE: [Tiff] sampleper pixel", by Balint Radics

2004.07.11 18:47 "[Tiff] sampleper pixel", by Balint Radics

Hi,

I am balint and I have some question concerning tiff and libtiff. I have a tiff picture.This picture was made such that there was a measurment

where single photons fell into the pixels of a detector and thus we got a matrix of (let's say) float or int data in each matrix element.Then we saved the picture in .tiff format.There are only one directories in each tiff file.I have a simple question:how can I read the data of each pixels from the file?Because what I don't understand in libtiff is that I can read the file following the "scanline" method to a buf:

    buf = _TIFFmalloc(TIFFScanlineSize(Tif));
     for (int row = 0; row < ImageHeight; row++){
      TIFFReadScanline(Tif, buf, row);
        "reading the buff somehow";
      }

but the problem is that I cannot get the single (let's say float or int type) datas of single pixels from the buff array.

Can anyone tell me how I can do that?

Thank you in advance,

         Balint