DGtal
1.5.beta
|
Aim: Provide a mechanism to save image (2D or 3D) into file with the best saver loader according to an filename (by parsing the extension). More...
#include <DGtal/io/writers/GenericWriter.h>
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CConstImage< TContainer >)) | |
Static Public Member Functions | |
static bool | exportFile (const std::string &filename, const TContainer &anImage, const TFunctor &aFunctor=TFunctor()) |
Aim: Provide a mechanism to save image (2D or 3D) into file with the best saver loader according to an filename (by parsing the extension).
Description of template class 'GenericWriter'
The typical use is very simple:
TContainer | the container (mainly an ImageContainer like ImageContainerBySTLVector or ImageContainerBySTLMap). |
Tdim | the dimension of the container (by default given by the container). |
TValue | the value type of data contained in the image (by default given by the container) |
TFunctor | a functor type to apply image transformation before saving the image (by default set to functors::Identity). |
Definition at line 94 of file GenericWriter.h.
DGtal::GenericWriter< TContainer, Tdim, TValue, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CConstImage< TContainer >) | ) |
|
static |
Export an image.
filename | the filename of the saved image (with a extension name). |
anImage | the image to be saved. |
aFunctor | to apply image transformation before saving. |
Referenced by DGtal::Shortcuts< TKSpace >::saveGrayScaleImage(), and testGenericWriter().