#include <DGtal/io/writers/VolWriter.h>
|
static bool | exportVol (const std::string &filename, const Image &aImage, const bool compressed=true, const Functor &aFunctor=Functor()) throw (DGtal::IOException) |
|
template<typename TImage, typename TFunctor = functors::Identity>
struct DGtal::VolWriter< TImage, TFunctor >
Aim: Export a 3D Image using the Vol formats.
Description of template struct 'VolWriter'
A functor can be specified to convert image values to Vol values (unsigned char).
- Template Parameters
-
TImage | the Image type. |
TFunctor | the type of functor used in the export. |
- Examples:
- images/raw2HDF5.cpp, tutorial-examples/FMMErosion.cpp, and tutorial-examples/volDTGranulo.cpp.
Definition at line 68 of file VolWriter.h.
◆ Functor
template<typename TImage, typename TFunctor = functors::Identity>
◆ Image
template<typename TImage, typename TFunctor = functors::Identity>
◆ Value
template<typename TImage, typename TFunctor = functors::Identity>
◆ BOOST_CONCEPT_ASSERT()
template<typename TImage, typename TFunctor = functors::Identity>
◆ BOOST_STATIC_ASSERT()
template<typename TImage, typename TFunctor = functors::Identity>
DGtal::VolWriter< TImage, TFunctor >::BOOST_STATIC_ASSERT |
( |
TImage::Domain::dimension |
= =3 | ) |
|
◆ exportVol()
template<typename TImage, typename TFunctor = functors::Identity>
Export an Image with the Vol format.
- Parameters
-
filename | name of the output file |
aImage | the image to export |
compressed | boolean to decide wether the vol must be compressed or not |
aFunctor | functor used to cast image values |
- Returns
- true if no errors occur.
The documentation for this struct was generated from the following file: