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 >
::DataPoints 
DataPoints
 alias
typedef PointMatcher< T >::Matrix Matrix
 alias
typedef PointMatcher< T >::Matrix Parameters
 alias
typedef PointMatcher< T >
::TransformationParameters 
TransformationParameters
 alias
typedef PointMatcher< T >::Vector Vector
 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 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 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 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.

Definition at line 43 of file IO.h.


Member Typedef Documentation

template<typename T>
typedef PointMatcher<T>::DataPoints PointMatcherIO< T >::DataPoints

alias

Definition at line 47 of file IO.h.

template<typename T>
typedef PointMatcher<T>::Matrix PointMatcherIO< T >::Matrix

alias

Definition at line 46 of file IO.h.

template<typename T>
typedef PointMatcher<T>::Matrix PointMatcherIO< T >::Parameters

alias

Definition at line 49 of file IO.h.

alias

Definition at line 48 of file IO.h.

template<typename T>
typedef PointMatcher<T>::Vector PointMatcherIO< T >::Vector

alias

Definition at line 45 of file IO.h.


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.)

Definition at line 391 of file IO.cpp.

template<typename T >
PointMatcher< T >::DataPoints PointMatcherIO< T >::loadCSV ( std::istream &  is) [static]

Load comma separated values (csv) file.

See also:
loadCSV()

Definition at line 403 of file IO.cpp.

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

Load point cloud from a file as VTK.

Definition at line 654 of file IO.cpp.

template<typename T >
PointMatcher< T >::DataPoints PointMatcherIO< T >::loadVTK ( std::istream &  is) [static]

Load point cloud from a stream as VTK.

Definition at line 664 of file IO.cpp.

template<typename T >
template void PointMatcherIO< T >::saveCSV ( const DataPoints data,
const std::string &  fileName 
) [static]

Save point cloud to a file as CSV.

Definition at line 612 of file IO.cpp.

template<typename T >
void PointMatcherIO< T >::saveCSV ( const DataPoints data,
std::ostream &  os 
) [static]

Save point cloud to a stream as CSV.

Definition at line 622 of file IO.cpp.

template<typename T >
template void PointMatcherIO< T >::saveVTK ( const DataPoints data,
const std::string &  fileName 
) [static]

Save point cloud to a file as VTK.

Definition at line 808 of file IO.cpp.


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


libpointmatcher
Author(s): Stéphane Magnenat, François Pomerleau
autogenerated on Thu Jan 2 2014 11:16:06