AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
July 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.07.11 18:47 "sampleper pixel", by Balint Radics
2004.07.11 18:57 "Re: sampleper pixel", by Frank Warmerdam
2004.07.12 09:01 "Re: sampleper pixel", by Balint Radics
2004.07.12 10:57 "Re: sampleper pixel", by Diana Szleper
2004.07.12 15:46 "Re: sampleper pixel", by Balint Radics

2004.07.12 09:01 "Re: sampleper pixel", by Balint Radics

> Balint,
> 
> If the file has one sample per pixel and is of type float (4 bytes
> per pixel, sampleformat ieeefloat) then you would do something like this:
> 
>       buf = _TIFFmalloc(TIFFScanlineSize(Tif));
>       for (int row = 0; row < ImageHeight; row++){
>         TIFFReadScanline(Tif, buf, row);
>    	"reading the buff somehow";
>         for( int pixel = 0; pixel < ImageWidth; pixel++ ) {
>            printf( "value[%d,%d] = %f\n",
>                    pixel, row, ((float *) buf)[pixel] );
>         }
>       }
> 

Thanx,but what due to my inspect the TIFFTAG_SAMPLESPERPIXEL tag sais
that my file has 1076232193 samplesperpixel.What does that mean???
Just to be correct:

int samplesperpixel;
TIFFGetField(Tif, TIFFTAG_SAMPLESPERPIXEL, &samplesperpixel);
cout << samplesperpixel << endl;

was the code.

Balint