31 #if defined(PGMReader_RECURSES) 32 #error Recursive header files inclusion detected in PGMReader.h 33 #else // defined(PGMReader_RECURSES) 35 #define PGMReader_RECURSES 37 #if !defined PGMReader_h 44 #include "DGtal/base/Common.h" 45 #include "DGtal/base/CUnaryFunctor.h" 50 #pragma warning(disable : 4290) 94 template <
typename TImageContainer,
95 typename TFunctor = functors::Cast< typename TImageContainer::Value > >
114 (ImageContainer::Domain::dimension == 3));
131 static ImageContainer
importPGM(
const std::string & aFilename,
132 const Functor & aFunctor =
Functor(),
149 static ImageContainer
importPGM3D(
const std::string & aFilename,
163 #include "DGtal/io/readers/PGMReader.ih" 169 #endif // !defined PGMReader_h 171 #undef PGMReader_RECURSES 172 #endif // else defined(PGMReader_RECURSES)
Aim: Import a 2D or 3D using the Netpbm formats (ASCII mode).
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2)||(ImageContainer::Domain::dimension==3))
Aim: Defines a unary functor, which associates arguments to results.
static ImageContainer importPGM(const std::string &aFilename, const Functor &aFunctor=Functor(), bool topbotomOrder=true)
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, unsigned char, Value >))
DGtal is the top-level namespace which contains all DGtal functions and types.
TImageContainer ImageContainer
FreemanChain< int >::Vector Vector
TImageContainer::Domain::Vector Vector
static ImageContainer importPGM3D(const std::string &aFilename, const Functor &aFunctor=Functor())
TImageContainer::Value Value