DGtal 1.4.0
|
Aim: Implements method to read a set of points represented in each line of a file. More...
#include <DGtal/io/readers/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.
|
static |
Main method to FreemanChain contours. Each line of the file should represent a FreemanChain
[in] | filename | the input filename |
Referenced by testPointListReader().
|
static |
Main method to import a vector containing a list of points defined in a file where each line defines a point. Blank line or line beginning with "#" are skipped.
filename | a filename |
aVectPosition | used to specify the position of indices of value points (optional: default set to 0,..,dimension) |
Referenced by main(), main(), testAlphaThickSegmentComputerFloatingPointContour(), testAlphaThickSegmentConvexHullAndBox(), testMultiWidth(), and testPointListReader().
|
static |
Main method to import a vector containing a list of points defined in a file where each line defines a point. Blank line or line beginning with "#" are skipped.
in | the input stream. |
aVectPosition | used to specify the position of indices of value points (default set to 0,..,dimension). |
|
static |
Import a vector containing all polygons defined on each line of a given file.
[in] | filename | input filename |
Referenced by testPointListReader().
|
static |
Import a vector containing all polygons defined on each line of a given istream.
in | the input stream. |