31#if defined(PointListReader_RECURSES)
32#error Recursive header files inclusion detected in PointListReader.h
35#define PointListReader_RECURSES
37#if !defined PointListReader_h
39#define PointListReader_h
45#include "DGtal/base/Common.h"
46#include "DGtal/geometry/curves/FreemanChain.h"
83 template <
typename TPo
int>
100 static std::vector< TPoint>
102 std::vector<unsigned int> aVectPosition=std::vector<unsigned int>());
115 static std::vector< TPoint>
117 std::vector<unsigned int> aVectPosition=std::vector<unsigned int>());
132 static std::vector<std::vector< TPoint> >
144 static std::vector<std::vector< TPoint> >
158 template <
typename TInteger >
159 static std::vector< FreemanChain< TInteger > >
174#include "DGtal/io/readers/PointListReader.ih"
182#undef PointListReader_RECURSES
DGtal is the top-level namespace which contains all DGtal functions and types.
Aim: Implements method to read a set of points represented in each line of a file.
static std::vector< TPoint > getPointsFromInputStream(std::istream &in, std::vector< unsigned int > aVectPosition=std::vector< unsigned int >())
static std::vector< std::vector< TPoint > > getPolygonsFromInputStream(std::istream &in)
static std::vector< FreemanChain< TInteger > > getFreemanChainsFromFile(const std::string &filename)
static std::vector< TPoint > getPointsFromFile(const std::string &filename, std::vector< unsigned int > aVectPosition=std::vector< unsigned int >())
static std::vector< std::vector< TPoint > > getPolygonsFromFile(const std::string &filename)