31 #if defined(LongvolWriter_RECURSES)
32 #error Recursive header files inclusion detected in LongvolWriter.h
35 #define LongvolWriter_RECURSES
37 #if !defined LongvolWriter_h
39 #define LongvolWriter_h
45 #include "DGtal/base/Common.h"
46 #include "DGtal/base/CUnaryFunctor.h"
47 #include "DGtal/base/BasicFunctors.h"
68 template <
typename TImage,
typename TFunctor = functors::Identity>
92 const bool compressed =
true,
106 template <
typename Word>
110 for (
unsigned size =
sizeof( Word ); size; --size, value >>= 8)
111 outs.put(
static_cast <char> (value & 0xFF) );
120 #include "DGtal/io/writers/LongvolWriter.ih"
127 #undef LongvolWriter_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
boost::uint64_t uint64_t
unsigned 64-bit integer.
Aim: Export a 3D Image using the Longvol formats (volumetric image with DGtal::uint64_t value type).
static bool exportLongvol(const std::string &filename, const Image &aImage, const bool compressed=true, const Functor &aFunctor=Functor())
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, Value, ValueLongvol >))
static std::ostream & write_word(std::ostream &outs, Word value)
DGtal::uint64_t ValueLongvol
Aim: Defines a unary functor, which associates arguments to results.