Difference between revisions of "Cropped TIFF"
m (update from Max Lyons)
m (1 revision(s))
Revision as of 20:56, 13 July 2006
A common situation when stitching images together is that most of the output image or layer is empty. This happens particularly during perspective correction or when creating High resolution partial panoramas from large numbers of photos.
This is ok except that panorama tools will labouriously process the geometry for all these empty pixels, which then consume valuable memory and disc space.
The TIFF specification allows for an image canvas to include a smaller image at an offset within the larger area using the XPOSITION, YPOSITION, TIFFTAG_PIXAR_IMAGEFULLWIDTH and TIFFTAG_PIXAR_IMAGEFULLHEIGHT TIFF tags, which is ideal for a typical panoramic image that is mostly empty space.
hugin, nona and PTmender can be told to create such cropped TIFF files by adding r:CROP as a TIFF option to the panorama format section of the p line in a stitching script. Two TIFF output formats are supported, TIFF_m and TIFF_multilayer (note that TIFF_multilayer is only supported by nona).
For example the following p line produces multiple cropped TIFF files with LZW compression:
p f0 w1000 h500 v120 n"TIFF_m c:LZW r:CROP"