libpointmatcher 1.0.2
Classes | Public Types | Static Public Member Functions
PointMatcherIO< T > Struct Template Reference

IO Functions and classes that are dependant on scalar type are defined in this templatized class. More...

#include <IO.h>

List of all members.

Classes

struct  FileInfo
 Information to exploit a reading from a file using this library. Fields might be left blank if unused. More...
struct  FileInfoVector
 A vector of file info, to be used in batch processing. More...

Public Types

typedef PointMatcher< T >::Vector Vector
 alias
typedef PointMatcher< T >::Matrix Matrix
 alias
typedef PointMatcher< T >
::DataPoints 
DataPoints
 alias
typedef PointMatcher< T >
::TransformationParameters 
TransformationParameters
 alias
typedef PointMatcher< T >::Matrix Parameters
 alias

Static Public Member Functions

static DataPoints loadCSV (const std::string &fileName)
 Load comma separated values (csv) file.
static DataPoints loadCSV (std::istream &is)
 Load comma separated values (csv) file.
static void saveCSV (const DataPoints &data, const std::string &fileName)
 Save point cloud to a file as CSV.
static void saveCSV (const DataPoints &data, std::ostream &os)
 Save point cloud to a stream as CSV.
static DataPoints loadVTK (const std::string &fileName)
 Load point cloud from a file as VTK.
static DataPoints loadVTK (std::istream &is)
 Load point cloud from a stream as VTK.
static void saveVTK (const DataPoints &data, const std::string &fileName)
 Save point cloud to a file as VTK.

Detailed Description

template<typename T>
struct PointMatcherIO< T >

IO Functions and classes that are dependant on scalar type are defined in this templatized class.


Member Function Documentation

template<typename T >
template PointMatcher< double >::DataPoints PointMatcherIO< T >::loadCSV ( const std::string &  fileName) [static]

Load comma separated values (csv) file.

Parameters:
fileNamea string containing the path and the file name

This loader has 3 behaviors since there is no official standard for csv files. A 2D or 3D point cloud will be created automatically if:

  • there is a header with columns named x, y and optionnaly z
  • there are only 2 or 3 columns in the file

Otherwise, the user is asked to enter column id manually which might block automatic processing.

Todo:
Add support to load descriptors (ex. color, ids, etc.)
template<typename T >
PointMatcher< T >::DataPoints PointMatcherIO< T >::loadCSV ( std::istream &  is) [static]

Load comma separated values (csv) file.

See also:
loadCSV()

The documentation for this struct was generated from the following files: