[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
Import/export of volume data. |
Classes | |
class | VolumeExportInfo |
Argument object for the function exportVolume(). More... | |
class | VolumeImportInfo |
Argument object for the function importVolume(). More... | |
Functions | |
template<... > | |
void | exportVolume (...) |
Function for exporting a 3D volume. More... | |
template<... > | |
void | importVolume (...) |
Function for importing a 3D volume. More... | |
void vigra::importVolume | ( | ... | ) |
Function for importing a 3D volume.
Declarations:
Data can be read either from a single file containing 3D data (supported formats: Andor .SIF or multi-page TIFF), a ".info" text file which describes the contents of an accompanying raw data file, or a stack of 2D images (numbered according to the scheme name_base+"[0-9]+"+name_extension
) each representing a slice of the volume. The decision which of these possibilities applies is taken in the VolumeImportInfo constructor, see there for full details.
Variant 1 is the basic version of this function. Here, the info object and a destination array of approriate size must already be constructed. The other variants are just abbreviations provided for your convenience:
Usage:
#include <vigra/multi_impex.hxx>
Namespace: vigra
Notice that slice numbers in a stack need not be consecutive (i.e. gaps are allowed) and will be interpreted according to their numerical order (i.e. "009", "010", "011" are read in the same order as "9", "10", "11"). The number of images found determines the depth of the volume.
void vigra::exportVolume | ( | ... | ) |
Function for exporting a 3D volume.
Declarations:
The volume can either be exported as a multi-page TIFF file (variant 2, only available if libtiff is installed), or as a stack of 2D images, one image per slice (variant 3, files are named according to the scheme name_base+"000"+name_ext
, name_base+"001"+name_ext
etc.). If the target image format does not support the source value_type
, all slices will be mapped to the appropriate target range in the same way.
Variant 1 is the basic version of the function. It allows full control over the export via an already constructed vigra::VolumeExportInfo object. The other two are just abbreviations that construct the VolumeExportInfo object internally.
Usage:
#include <vigra/multi_impex.hxx>
Namespace: vigra
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|