DGtal
0.6.devel
|
#include <PointListReader.h>
Static Public Member Functions | |
static std::vector< TPoint > | getPointsFromInputStream (std::istream &in, std::vector< unsigned int > aVectPosition=std::vector< unsigned int >()) |
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) |
static std::vector < std::vector< TPoint > > | getPolygonsFromInputStream (std::istream &in) |
template<typename TInteger > | |
static std::vector < FreemanChain< TInteger > > | getFreemanChainsFromFile (const std::string &filename) |
Aim: Implements method to read a set of points represented in each line of a file.
Description of class 'PointListReader'
The main method to read a set of points as a simple format where each elements is represented in a single line. Blank line or line beginning with "#" are skipped.
Simple example:
and you can specifying the point position:
Definition at line 84 of file PointListReader.h.
|
inlinestatic |
Main method to FreemanChain contours. Each line of the file should represent a FreemanChain
filename |
Definition at line 152 of file PointListReader.ih.
|
inlinestatic |
Main method to import a vector containing a list of points defined in a file where each line defines a point.
filename | |
aVectPosition | used to specify the position of indices of value points (optional: default set to 0,..,dimension) |
Definition at line 50 of file PointListReader.ih.
|
inlinestatic |
Main method to import a vector containing a list of points defined in a file where each line defines a point.
in | the input stream. |
aVectPosition | used to specify the position of indices of value points (default set to 0,..,dimension). |
Definition at line 62 of file PointListReader.ih.
Referenced by DGtal::GridCurve< TKSpace >::initFromVectorStream().
|
inlinestatic |
Import a vector containing all polygons defined on each line of a given file.
filename |
Definition at line 105 of file PointListReader.ih.
|
inlinestatic |
Import a vector containing all polygons defined on each line of a given istream.
in | the input stream. |
Definition at line 115 of file PointListReader.ih.