[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
![]() |
Import/export of the TIFF format | ![]() |
Functions | |
template<... > | |
void | createRGBTiffImage (...) |
Create a 3-band TiffImage from the given RGB image. More... | |
template<... > | |
void | createScalarTiffImage (...) |
Create a single-band TiffImage from the given scalar image. More... | |
template<... > | |
void | createTiffImage (...) |
Create a TiffImage from the given iterator range. More... | |
template<... > | |
void | importTiffImage (...) |
Read a given TIFF image. More... | |
template<... > | |
void | tiffToRGBImage (...) |
Import a RGB (3-band or color-mapped) TiffImage into a RGB image. More... | |
template<... > | |
void | tiffToScalarImage (...) |
Convert single-band TiffImage to scalar image. More... | |
TIFF conversion and file export/import.
Normally, you need not call the TIFF functions directly. They are available much more conveniently via importImage() and exportImage()
TIFF (Tagged Image File Format) is a very versatile image format - one can store different pixel types (byte, integer, float, double) and color models (black and white, RGB, mapped RGB, other color systems). For more details and information on how to create a TIFF image, refer to the TIFF documentation at http://www.libtiff.org/ for details.
void vigra::importTiffImage | ( | ... | ) |
Read a given TIFF image.
This function calls tiffToScalarImage() or tiffToRGBImage(), depending on the destinations's value_type. Usually, it is better to use importImage(). importTiffImage() should only be used if explicit access to the TIFF object TiffImage
is required.
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
Required Interface:
see tiffToScalarImage() and tiffToRGBImage()
Preconditions:
see tiffToScalarImage() and tiffToRGBImage()
void vigra::tiffToScalarImage | ( | ... | ) |
Convert single-band TiffImage to scalar image.
Note that unexpected results can occur when the destination pixel type is weaker than the pixel type in the file (e.g. when a float
file is imported into a unsigned char
image).
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
Preconditions:
The output array must have the correct shape.
void vigra::tiffToRGBImage | ( | ... | ) |
Import a RGB (3-band or color-mapped) TiffImage into a RGB image.
Note that unexpected results can occur when the destination pixel type is weaker than the pixel type in the file (e.g. when a float
file is imported into a unsigned char
image).
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
Preconditions:
The destination image must have the appropriate size.
void vigra::createTiffImage | ( | ... | ) |
Create a TiffImage from the given iterator range.
Type and size of the TiffImage are determined by the input image. Currently, the function can create scalar images and RGB images of type unsigned char, short, int, float, and double.
Usually, it is better to use exportImage(). createTiffImage() should only be used if explicit access to the TIFF object TiffImage
is required.
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
void vigra::createScalarTiffImage | ( | ... | ) |
Create a single-band TiffImage from the given scalar image.
Type and size of the TiffImage are determined by the input image (may be one of unsigned char, short, int, float, or double).
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
void vigra::createRGBTiffImage | ( | ... | ) |
Create a 3-band TiffImage from the given RGB image.
Type and size of the TiffImage are determined by the input image (may be one of unsigned char, int, float, or double).
Declarations:
pass 2D array views:
Usage:
#include <vigra/tiff.hxx>
Namespace: vigra
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|