Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type).
More...
#include <DGtal/io/writers/LongvolWriter.h>
|
| template<typename Word > |
| static std::ostream & | write_word (std::ostream &outs, Word value) |
| |
template<typename TImage, typename TFunctor = functors::Identity>
struct DGtal::LongvolWriter< TImage, TFunctor >
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).
- Template Parameters
-
| TImage | the Image type. |
| TFunctor | the type of functor used in the export. |
- See also
- testLongvol.cpp
Definition at line 69 of file LongvolWriter.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>
◆ ValueLongvol
template<typename TImage , typename TFunctor = functors::Identity>
◆ BOOST_CONCEPT_ASSERT()
template<typename TImage , typename TFunctor = functors::Identity>
◆ exportLongvol()
template<typename TImage , typename TFunctor = functors::Identity>
Export an Image with the Longvol format. A DGtal::IOException is thrown in case of io problems.
- 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.
◆ write_word()
template<typename TImage , typename TFunctor = functors::Identity>
template<typename Word >
| static std::ostream& DGtal::LongvolWriter< TImage, TFunctor >::write_word |
( |
std::ostream & |
outs, |
|
|
Word |
value |
|
) |
| |
|
inlinestaticprivate |
Generic write word (binary mode) in little-endian.
- Parameters
-
| outs | output stream. |
| value | value to write. |
- Returns
- modified stream.
Definition at line 108 of file LongvolWriter.h.
110 for (
unsigned size =
sizeof( Word ); size; --size, value >>= 8)
111 outs.put(
static_cast <char> (value & 0xFF) );
The documentation for this struct was generated from the following file: