DGtal 1.4.0
|
Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type). More...
#include <DGtal/io/writers/LongvolWriter.h>
Public Types | |
typedef TImage | Image |
typedef TImage::Value | Value |
typedef TFunctor | Functor |
typedef DGtal::uint64_t | ValueLongvol |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CUnaryFunctor< TFunctor, Value, ValueLongvol >)) | |
Static Public Member Functions | |
static bool | exportLongvol (const std::string &filename, const Image &aImage, const bool compressed=true, const Functor &aFunctor=Functor()) |
Static Private Member Functions | |
template<typename Word > | |
static std::ostream & | write_word (std::ostream &outs, Word value) |
Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type).
Description of template struct 'LongvolWriter'
A functor can be specified to convert image values to LongVol values (DGtal::uint64_t).
TImage | the Image type. |
TFunctor | the type of functor used in the export. |
Definition at line 69 of file LongvolWriter.h.
typedef TFunctor DGtal::LongvolWriter< TImage, TFunctor >::Functor |
Definition at line 75 of file LongvolWriter.h.
typedef TImage DGtal::LongvolWriter< TImage, TFunctor >::Image |
Definition at line 73 of file LongvolWriter.h.
typedef TImage::Value DGtal::LongvolWriter< TImage, TFunctor >::Value |
Definition at line 74 of file LongvolWriter.h.
typedef DGtal::uint64_t DGtal::LongvolWriter< TImage, TFunctor >::ValueLongvol |
Definition at line 76 of file LongvolWriter.h.
DGtal::LongvolWriter< TImage, TFunctor >::BOOST_CONCEPT_ASSERT | ( | (concepts::CUnaryFunctor< TFunctor, Value, ValueLongvol >) | ) |
|
static |
Export an Image with the Longvol format. A DGtal::IOException is thrown in case of io problems.
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 |
Referenced by testLongvol().
|
inlinestaticprivate |
Generic write word (binary mode) in little-endian.
outs | output stream. |
value | value to write. |
Definition at line 108 of file LongvolWriter.h.