31 #if defined(VolWriter_RECURSES) 32 #error Recursive header files inclusion detected in VolWriter.h 33 #else // defined(VolWriter_RECURSES) 35 #define VolWriter_RECURSES 37 #if !defined VolWriter_h 45 #include <boost/static_assert.hpp> 46 #include <boost/type_traits.hpp> 47 #include "DGtal/base/Common.h" 48 #include "DGtal/base/CUnaryFunctor.h" 49 #include "DGtal/base/BasicFunctors.h" 67 template <
typename TImage,
typename TFunctor = functors::Identity>
87 static bool exportVol(
const std::string & filename,
const Image &aImage,
88 const bool compressed=
true,
95 #include "DGtal/io/writers/VolWriter.ih" 100 #endif // !defined VolWriter_h 102 #undef VolWriter_RECURSES 103 #endif // else defined(VolWriter_RECURSES) BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, Value, unsigned char >))
Aim: Export a 3D Image using the Vol formats.
Aim: Defines a unary functor, which associates arguments to results.
static bool exportVol(const std::string &filename, const Image &aImage, const bool compressed=true, const Functor &aFunctor=Functor())
DGtal is the top-level namespace which contains all DGtal functions and types.
BOOST_STATIC_ASSERT(TImage::Domain::dimension==3)