31 #if defined(RawWriter_RECURSES)
32 #error Recursive header files inclusion detected in RawWriter.h
33 #else // defined(RawWriter_RECURSES)
35 #define RawWriter_RECURSES
37 #if !defined RawWriter_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"
97 template <
typename TImage,
typename TFunctor = functors::Identity>
103 typedef typename TImage::Value
Value;
115 template <
typename Word>
116 static bool exportRaw(
const std::string& filename,
118 const Functor& aFunctor =
Functor());
128 static bool exportRaw8(
const std::string& filename,
130 const Functor& aFunctor =
Functor());
140 static bool exportRaw16(
const std::string& filename,
142 const Functor& aFunctor =
Functor());
152 static bool exportRaw32(
const std::string& filename,
154 const Functor& aFunctor =
Functor());
168 template <
typename Word>
175 #include "DGtal/io/writers/RawWriter.ih"
180 #endif // !defined RawWriter_h
182 #undef RawWriter_RECURSES
183 #endif // else defined(RawWriter_RECURSES)
static bool exportRaw(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor())
static bool exportRaw8(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor())
Aim: Raw binary export of an Image.
std::ostream & raw_writer_write_word(std::ostream &outs, Word value)
DGtal is the top-level namespace which contains all DGtal functions and types.
static bool exportRaw32(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor())
static bool exportRaw16(const std::string &filename, const Image &aImage, const Functor &aFunctor=Functor())