Cropped TIFF

From PanoTools.org Wiki
(Difference between revisions)
Jump to: navigation, search
(basic page)
m (update from Max Lyons)
Line 3: Line 3:
 
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.
 
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''' and '''YPOSITION''' TIFF tags, which is ideal for a typical panoramic image that is mostly empty 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''.
+
[[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:
 
For example the following ''p'' line produces multiple cropped TIFF files with LZW compression:

Revision as of 10:29, 17 May 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"

enblend can read these cropped TIFF files since version 2.4, so this technique is useful when working with enblend. Additionally the gimp image editor can open multilayer cropped TIFF files directly.

Personal tools
Namespaces

Variants
Actions
Navigation
tools
Tools