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
September 2008

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

2008.09.07 23:18 "SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.07 23:34 "Re: SAMPLEFORMAT_IEEEFP", by Bob Friesenhahn
2008.09.08 06:33 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.08 10:07 "Re: SAMPLEFORMAT_IEEEFP", by <jcupitt@gmail.com>
2008.09.08 09:01 "Re: SAMPLEFORMAT_IEEEFP", by Kai-uwe Behrmann
2008.09.08 10:45 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.08 11:16 "Re: SAMPLEFORMAT_IEEEFP", by Kai-uwe Behrmann
2008.09.08 11:19 "Re: SAMPLEFORMAT_IEEEFP", by Axel Canicio
2008.09.08 23:07 "Re: SAMPLEFORMAT_IEEEFP", by Craig Bruce
2008.09.09 01:12 "Re: SAMPLEFORMAT_IEEEFP", by Chris Cox
2008.09.09 07:02 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.10 00:06 "Re: SAMPLEFORMAT_IEEEFP", by Chris Cox
2008.09.10 06:44 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.10 07:15 "Re: SAMPLEFORMAT_IEEEFP", by <jcupitt@gmail.com>
2008.09.10 19:48 "Re: SAMPLEFORMAT_IEEEFP", by Chris Cox
2008.09.10 20:46 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>
2008.09.11 05:31 "Re: SAMPLEFORMAT_IEEEFP", by Andrey Kiselev
2008.09.11 20:13 "Re: SAMPLEFORMAT_IEEEFP", by Charles Auer
2008.09.12 20:57 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>

2008.09.12 20:57 "Re: SAMPLEFORMAT_IEEEFP", by <acanicio@astrosnap.com>

Thank you for the test files.

Concerning my problems with SMinSampleValue and SMaxSampleValue, I just
found this :
http://www.asmail.be/msg0055048683.html

I Use libtiffdelphi, and the above discussion exactly describes my problem
with these tags.
I tried the solution on the XResolution and YResolution tags and it works.
The TIFF RATIONAL values can be read and written correctly if they come from
a Double variable.
For example this does not work :

Procedure Writetag(OpenTiff : PTIFF);
Begin
    TIFFSetField(OpenTiff,TIFFTAG_XRESOLUTION,300);
End;

But this works !

Procedure Writetag(OpenTiff: PTIFF);
Var value : Double;
Begin
   value := 300;
   TIFFSetField(OpenTiff,TIFFTAG_XRESOLUTION,Value);
End;

However with SMINSAMPLEVALUE and SMAXSAMPLEVALUE, none of these work :

Procedure Writetag(OpenTiff : PTIFF);
Begin
    TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,1.0,1.0,1.0);
End;

Procedure Writetag(OpenTiff: PTIFF);
Var value : Double;
Begin
   value := 1;
   TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;

Procedure Writetag(OpenTiff: PTIFF);
Var value : Single;
Begin
   value := 1;
   TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;

Procedure Writetag(OpenTiff: PTIFF);
Var value : Real;
Begin
   value := 1;
   TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;

Procedure Writetag(OpenTiff: PTIFF);
Var value : Extended;
Begin
   value := 1;
   TIFFSetField(OpenTiff,TIFFTAG_SMAXSAMPLEVALUE,Value,Value,Value);
End;


Does anybody have any other hint ?

Thank you again
Best regards
Axel




Charles Auer wrote:
> 
> 
> I constructed some floating point test files.  Sample values are between 0
> and 1.
>  
> http://www.newviewgraphics.com/tiff/fptiff.zip     (88kb)
>  
> Charles
>  
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/
> 

-- 
View this message in context: http://www.nabble.com/SAMPLEFORMAT_IEEEFP-tp19363616p19463994.html
Sent from the Tiff / LibTiff mailing list archive at Nabble.com.