[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
Image Import/Export Facilities | ![]() |
---|
Classes | |
class | ImageExportInfo |
Argument object for the function exportImage(). See exportImage() for usage example. This object must be used to define the properties of an image to be written to disk. More... | |
class | ImageImportInfo |
Argument object for the function importImage(). See importImage() for a usage example. This object must be used to read an image from disk and enquire about its properties. More... | |
Functions | |
std::string | impexListFormats () |
List the image formats VIGRA can read and write. | |
std::string | impexListExtensions () |
List the file extension VIGRA understands. | |
bool | isImage (char const *filename) |
Test whether a file is an image format known to VIGRA. | |
template<...> void | read_bands (Decoder *dec, ImageIterator ys, Accessor a, SrcValueType) |
used for reading bands after the source data type has been figured out. | |
template<...> void | read_band (Decoder *dec, ImageIterator ys, Accessor a, SrcValueType) |
used for reading bands after the source data type has been figured out. | |
template<...> void | importVectorImage (const ImageImportInfo &info, ImageIterator iter, Accessor a) |
used for reading images of vector type, such as integer of float rgb. | |
template<...> void | importScalarImage (const ImageImportInfo &info, ImageIterator iter, Accessor a) |
used for reading images of scalar type, such as integer and float grayscale. | |
template<...> void | importImage (const ImageImportInfo &info, ImageIterator iter, Accessor a) |
Read an image, given an vigra::ImageImportInfo object. | |
template<...> void | write_bands (Encoder *enc, ImageIterator ul, ImageIterator lr, Accessor a, DstValueType) |
used for writing bands after the source data type has been figured out. | |
template<...> void | write_band (Encoder *enc, ImageIterator ul, ImageIterator lr, Accessor a, DstValueType) |
used for writing bands after the source data type has been figured out. | |
template<...> void | exportFloatingVectorImage (SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo &info) |
used for writing images of floating point vector type, such as floating point rgb. | |
template<...> void | exportIntegralVectorImage (SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo &info) |
used for writing images of integral vector type, such as integer rgb. | |
template<...> void | exportFloatingScalarImage (SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo &info) |
used for writing images of floating point scalar type, such as floating point grayscale. | |
template<...> void | exportIntegralScalarImage (SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo &info) |
used for writing images of integral scalar type, such as integer grayscale. | |
template<...> void | exportImage (SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo &info) |
Write an image, given an vigra::ImageExportInfo object. |
Detailed Description |
void exportFloatingScalarImage (...) |
used for writing images of floating point scalar type, such as floating point grayscale.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template < class SrcIterator, class SrcAccessor > void exportFloatingScalarImage( SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo & info ) }
|
void exportFloatingVectorImage (...) |
used for writing images of floating point vector type, such as floating point rgb.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template < class SrcIterator, class SrcAccessor > void exportFloatingVectorImage( SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo & info ) }
|
void exportImage (...) |
Write an image, given an vigra::ImageExportInfo object. Declarations: pass arguments explicitly: namespace vigra { template <class SrcIterator, class SrcAccessor> void exportImage(SrcIterator sul, SrcIterator slr, SrcAccessor sget, ImageExportInfo const & info) } use argument objects in conjuction with Argument Object Factories: namespace vigra { template <class SrcIterator, class SrcAccessor> void exportImage(SrcIterator sul, SrcIterator slr, SrcAccessor sget, ImageExportInfo const & info) } Usage:
#include "vigra/impex.hxx"
vigra::BRGBImage out(w, h); ... // write as JPEG image, using compression quality 80 vigra::exportImage(srcImageRange(out), vigra::ImageExportInfo("myimage.jpg").setCompression("80")); Preconditions:
|
void exportIntegralScalarImage (...) |
used for writing images of integral scalar type, such as integer grayscale.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template < class SrcIterator, class SrcAccessor > void exportIntegralScalarImage( SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo & info ) }
|
void exportIntegralVectorImage (...) |
used for writing images of integral vector type, such as integer rgb.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template < class SrcIterator, class SrcAccessor > void exportIntegralVectorImage( SrcIterator sul, SrcIterator slr, SrcAccessor sget, const ImageExportInfo & info ) }
|
|
List the file extension VIGRA understands. This is useful for creating file dialogs that only list image files VIGRA can actually import. Usage:
#include "vigra/imageinfo.hxx"
std::cout << "supported extensions: " << vigra::impexListExtensions() << std::endl; |
|
List the image formats VIGRA can read and write. This is useful for creating error messages if VIGRA encounters an image format it doesn't recognize. Usage:
#include "vigra/imageinfo.hxx"
std::cout << "supported formats: " << vigra::impexListFormats() << std::endl;
|
void importImage (...) |
Read an image, given an vigra::ImageImportInfo object. Declarations: pass arguments explicitly: namespace vigra { template <class ImageIterator, class Accessor> void importImage(ImageImportInfo const & image, ImageIterator iter, Accessor a) } use argument objects in conjuction with Argument Object Factories: namespace vigra { template <class ImageIterator, class Accessor> inline void importImage(ImageImportInfo const & image, pair<ImageIterator, Accessor> dest) } Usage:
#include "vigra/impex.hxx"
vigra::ImageImportInfo info("myimage.gif"); if(info.isGrayscale()) { // create byte image of appropriate size vigra::BImage in(info.width(), info.height()); vigra::importImage(info, destImage(in)); // read the image ... } else { // create byte RGB image of appropriate size vigra::BRGBImage in(info.width(), info.height()); vigra::importImage(info, destImage(in)); // read the image ... } Preconditions:
|
void importScalarImage (...) |
used for reading images of scalar type, such as integer and float grayscale.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template < class ImageIterator, class Accessor > void importScalarImage( const ImageImportInfo & info, ImageIterator iter, Accessor a ) }
|
void importVectorImage (...) |
used for reading images of vector type, such as integer of float rgb.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template< class ImageIterator, class Accessor > void importVectorImage( const ImageImportInfo & info, ImageIterator iter, Accessor a ) }
|
|
Test whether a file is an image format known to VIGRA. This checks the first few bytes of the file and compares them with the "magic strings" of each recognized image format. Usage:
#include "vigra/imageinfo.hxx"
std::cout << "is image: " << vigra::isImage("foo.bmp") << std::endl; |
void read_band (...) |
used for reading bands after the source data type has been figured out.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template< class ImageIterator, class Accessor, class SrcValueType > void read_band( Decoder * dec, ImageIterator ys, Accessor a, SrcValueType ) }
|
void read_bands (...) |
used for reading bands after the source data type has been figured out.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template< class ImageIterator, class Accessor, class SrcValueType > void read_bands( Decoder * dec, ImageIterator ys, Accessor a, SrcValueType ) }
|
void write_band (...) |
used for writing bands after the source data type has been figured out.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template< class ImageIterator, class Accessor, class DstValueType > void write_band( Encoder * enc, ImageIterator ul, ImageIterator lr, Accessor a, DstValueType ) }
|
void write_bands (...) |
used for writing bands after the source data type has been figured out.
#include "vigra/impex.hxx" Declaration:
namespace vigra { template< class ImageIterator, class Accessor, class DstValueType > void write_bands( Encoder * enc, ImageIterator ul, ImageIterator lr, Accessor a, DstValueType ) }
|
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|