Adobe Systems, Inc.

TIFF I/O
[I/O]

Support for reading and writing TIFF image files. More...

Classes

struct  tiff_read_support< VIEW >
 Determines whether the given view type is supported for reading. More...
struct  tiff_write_support< VIEW >
 Determines whether the given view type is supported for writing. More...

Functions

template<typename IMAGE>
void tiff_read_and_convert_image (const std::string &filename, IMAGE &im)
template<typename IMAGE>
void tiff_read_and_convert_image (const char *filename, IMAGE &im)
template<typename VIEW>
void tiff_read_and_convert_view (const std::string &filename, const VIEW &view)
template<typename VIEW>
void tiff_read_and_convert_view (const char *filename, const VIEW &view)
point2< int > tiff_read_dimensions (const std::string &filename)
point2< int > tiff_read_dimensions (const char *filename)
template<typename IMAGE>
void tiff_read_image (const std::string &filename, IMAGE &im)
template<typename IMAGE>
void tiff_read_image (const char *filename, IMAGE &im)
template<typename IMAGES>
void tiff_read_image (const std::string &filename, any_image< IMAGES > &im)
template<typename IMAGES>
void tiff_read_image (const char *filename, any_image< IMAGES > &im)
template<typename VIEW>
void tiff_read_view (const std::string &filename, const VIEW &view)
template<typename VIEW>
void tiff_read_view (const char *filename, const VIEW &view)
template<typename VIEW>
void tiff_write_view (const std::string &filename, const VIEW &view)
template<typename VIEW>
void tiff_write_view (const char *filename, const VIEW &view)
template<typename VIEWS>
void tiff_write_view (const std::string &filename, const any_image_view< VIEWS > &runtime_view)
template<typename VIEWS>
void tiff_write_view (const char *filename, const any_image_view< VIEWS > &runtime_view)

Detailed Description


Function Documentation

template<typename IMAGES>
void tiff_read_image const char *  filename,
any_image< IMAGES > &  im
 

reads a TIFF image into a run-time instantiated image

Opens the given tiff file name, selects the first type in IMAGES whose color space and channel are compatible to those of the image file and creates a new image of that type with the dimensions specified by the image file.

Definition at line 100 of file tiff_dynamic_io.hpp.

template<typename IMAGES>
void tiff_read_image const std::string &  filename,
any_image< IMAGES > &  im
 

reads a TIFF image into a run-time instantiated image

Definition at line 108 of file tiff_dynamic_io.hpp.

template<typename VIEWS>
void tiff_write_view const char *  filename,
const any_image_view< VIEWS > &  runtime_view
 

Saves the currently instantiated view to a tiff file specified by the given tiff image file name.

Throws std::ios_base::failure if the currently instantiated view type is not supported for writing by the I/O extension or if it fails to create the file.

Definition at line 117 of file tiff_dynamic_io.hpp.

template<typename VIEWS>
void tiff_write_view const std::string &  filename,
const any_image_view< VIEWS > &  runtime_view
 

Saves the currently instantiated view to a tiff file specified by the given tiff image file name.

Definition at line 125 of file tiff_dynamic_io.hpp.

point2<int> tiff_read_dimensions const char *  filename  ) 
 

Returns the width and height of the TIFF file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid TIFF file.

Definition at line 347 of file tiff_io.hpp.

point2<int> tiff_read_dimensions const std::string &  filename  ) 
 

Returns the width and height of the TIFF file at the specified location. Throws std::ios_base::failure if the location does not correspond to a valid TIFF file.

Definition at line 355 of file tiff_io.hpp.

template<typename VIEW>
void tiff_read_view const char *  filename,
const VIEW &  view
 

Loads the image specified by the given tiff image file name into the given view.

Triggers a compile assert if the view color space and channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its color space or channel depth are not compatible with the ones specified by VIEW, or if its dimensions don't match the ones of the view.

Definition at line 365 of file tiff_io.hpp.

template<typename VIEW>
void tiff_read_view const std::string &  filename,
const VIEW &  view
 

Loads the image specified by the given tiff image file name into the given view.

Definition at line 374 of file tiff_io.hpp.

template<typename IMAGE>
void tiff_read_image const char *  filename,
IMAGE &  im
 

Allocates a new image whose dimensions are determined by the given tiff image file, and loads the pixels into it.

Triggers a compile assert if the image color space or channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if the file is not a valid TIFF file, or if its color space or channel depth are not compatible with the ones specified by IMAGE.

Definition at line 384 of file tiff_io.hpp.

template<typename IMAGE>
void tiff_read_image const std::string &  filename,
IMAGE &  im
 

Allocates a new image whose dimensions are determined by the given tiff image file, and loads the pixels into it.

Definition at line 393 of file tiff_io.hpp.

template<typename VIEW>
void tiff_read_and_convert_view const char *  filename,
const VIEW &  view
 

Loads and color-converts the image specified by the given tiff image file name into the given view.

Throws std::ios_base::failure if the file is not a valid TIFF file, or if its dimensions don't match the ones of the view.

Definition at line 401 of file tiff_io.hpp.

template<typename VIEW>
void tiff_read_and_convert_view const std::string &  filename,
const VIEW &  view
 

Loads and color-converts the image specified by the given tiff image file name into the given view.

Definition at line 409 of file tiff_io.hpp.

template<typename IMAGE>
void tiff_read_and_convert_image const char *  filename,
IMAGE &  im
 

Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it.

Throws std::ios_base::failure if the file is not a valid TIFF file.

Definition at line 417 of file tiff_io.hpp.

template<typename IMAGE>
void tiff_read_and_convert_image const std::string &  filename,
IMAGE &  im
 

Allocates a new image whose dimensions are determined by the given tiff image file, loads and color-converts the pixels into it.

Definition at line 425 of file tiff_io.hpp.

template<typename VIEW>
void tiff_write_view const char *  filename,
const VIEW &  view
 

Saves the view to a tiff file specified by the given tiff image file name.

Triggers a compile assert if the view color space and channel depth are not supported by the TIFF library or by the I/O extension. Throws std::ios_base::failure if it fails to create the file.

Definition at line 450 of file tiff_io.hpp.

template<typename VIEW>
void tiff_write_view const std::string &  filename,
const VIEW &  view
 

Saves the view to a tiff file specified by the given tiff image file name.

Definition at line 459 of file tiff_io.hpp.

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google