31 #if defined(PGMReader_RECURSES)
32 #error Recursive header files inclusion detected in PGMReader.h
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)
96 typename TFunctor = functors::Cast<typename TImageContainer::Value>>
115 (ImageContainer::Domain::dimension == 3));
134 bool topbotomOrder =
true);
164 #include "DGtal/io/readers/PGMReader.ih"
172 #undef PGMReader_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Import a 2D or 3D using the Netpbm formats (ASCII mode).
static ImageContainer importPGM3D(const std::string &aFilename, const Functor &aFunctor=Functor())
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, unsigned char, Value >))
TImageContainer::Value Value
TImageContainer ImageContainer
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2)||(ImageContainer::Domain::dimension==3))
TImageContainer::Domain::Vector Vector
static ImageContainer importPGM(const std::string &aFilename, const Functor &aFunctor=Functor(), bool topbotomOrder=true)
Aim: Defines a unary functor, which associates arguments to results.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer