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 2006

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

2006.07.21 12:40 "How to save in tiff format file?", by Toh Kc
2006.07.21 17:16 "Re: How to save a tiff format file?", by Bernie Pallek
2006.07.25 11:45 "Re: How to save in tiff format file?", by Gerben Vos
2006.07.25 13:41 "Re: How to save in tiff format file?", by Bernie Pallek
2006.07.30 10:36 "Re: How to save in tiff format file?", by Toh Kc
2006.07.31 13:39 "Re: How to save in tiff format file?", by Bernie Pallek
2006.08.02 02:09 "Re: How to save in tiff format file?", by Toh Kc
2006.08.02 10:14 "Re: How to save in tiff format file?", by Gerben Vos
2006.08.02 17:27 "Re: How to save in tiff format file?", by Bernie Pallek

2006.07.25 13:41 "Re: How to save in tiff format file?", by Bernie Pallek

Gerben Vos wrote:
> 2)
> 
> 	TIFFWriteScanline(dif, &array[k] , k);
> 
> I think this should be:
> 
> 	TIFFWriteScanline(dif, &array[k * Gwidth] , k);

I second that thought.

One more idea: Kach, to help you catch some errors like this, you can set up
your array in a conspicuous manner; for instance, leave it all filled with
0, except for a diagnoal line with value 255 (say), from top-left corner to
bottom-right.  Also, maybe choose a value of 127 for the four corner pixels.
 This way, you'll notice things like skew problems and fencepost errors in
the handling of your data.  In the case of mistake #2, if the expected
diagonal line is actually vertical, it suggests there's some kind of error
in the indexing of the source data ('array').  Note, this is just a general
technique, and if you make mistake in setting up your data, and make a
precisely complementary mistake (improbable) in the other code, it might
slip by undetected. :-)