31 #if defined(PPMReader_RECURSES)
32 #error Recursive header files inclusion detected in PPMReader.h
35 #define PPMReader_RECURSES
37 #if !defined PPMReader_h
44 #include "DGtal/base/Common.h"
45 #include "DGtal/base/CUnaryFunctor.h"
46 #include "DGtal/io/colormaps/BasicColorToScalarFunctors.h"
50 #pragma warning(disable : 4290)
97 typename TFunctor=functors::ColorRGBEncoder<typename TImageContainer::Value> >
113 (ImageContainer::Domain::dimension == 3));
130 bool topbotomOrder =
true);
143 #include "DGtal/io/readers/PPMReader.ih"
151 #undef PPMReader_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).
BOOST_CONCEPT_ASSERT((concepts::CUnaryFunctor< TFunctor, DGtal::Color, Value >))
static ImageContainer importPPM(const std::string &aFilename, const Functor &aFunctor=functors::ColorRGBEncoder< Value >(), bool topbotomOrder=true)
BOOST_STATIC_ASSERT((ImageContainer::Domain::dimension==2)||(ImageContainer::Domain::dimension==3))
TImageContainer::Value Value
TImageContainer ImageContainer
TImageContainer::Domain::Vector Vector
Aim: Defines a unary functor, which associates arguments to results.
ImageContainerBySTLVector< HyperRectDomain< Z2i::Space >, std::unordered_set< Z2i::Point > > TImageContainer