31 #if defined(PGMWriter_RECURSES)
32 #error Recursive header files inclusion detected in PGMWriter.h
33 #else // defined(PGMWriter_RECURSES)
35 #define PGMWriter_RECURSES
37 #if !defined PGMWriter_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"
87 template <
typename TImage,
typename TFunctor = DefaultFunctor>
92 typedef typename TImage::Value
Value;
98 (TImage::Domain::dimension == 3));
111 static bool exportPGM(
const std::string & filename,
const Image &aImage,
113 bool saveASCII=
false,
bool topbotomOrder=
true);
133 #include "DGtal/io/writers/PGMWriter.ih"
138 #endif // !defined PGMWriter_h
140 #undef PGMWriter_RECURSES
141 #endif // else defined(PGMWriter_RECURSES)