IO Functions and classes that are dependant on scalar type are defined in this templatized class. More...
#include <IO.h>
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. |
IO Functions and classes that are dependant on scalar type are defined in this templatized class.
typedef PointMatcher<T>::DataPoints PointMatcherIO< T >::DataPoints |
typedef PointMatcher<T>::Matrix PointMatcherIO< T >::Matrix |
typedef PointMatcher<T>::Matrix PointMatcherIO< T >::Parameters |
typedef PointMatcher<T>::TransformationParameters PointMatcherIO< T >::TransformationParameters |
typedef PointMatcher<T>::Vector PointMatcherIO< T >::Vector |
template PointMatcher< double >::DataPoints PointMatcherIO< T >::loadCSV | ( | const std::string & | fileName | ) | [static] |
Load comma separated values (csv) file.
fileName | a 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:
Otherwise, the user is asked to enter column id manually which might block automatic processing.
PointMatcher< T >::DataPoints PointMatcherIO< T >::loadCSV | ( | std::istream & | is | ) | [static] |
template PointMatcherIO< double >::DataPoints PointMatcherIO< T >::loadVTK | ( | const std::string & | fileName | ) | [static] |
PointMatcher< T >::DataPoints PointMatcherIO< T >::loadVTK | ( | std::istream & | is | ) | [static] |
template void PointMatcherIO< T >::saveCSV | ( | const DataPoints & | data, |
const std::string & | fileName | ||
) | [static] |
void PointMatcherIO< T >::saveCSV | ( | const DataPoints & | data, |
std::ostream & | os | ||
) | [static] |
template void PointMatcherIO< T >::saveVTK | ( | const DataPoints & | data, |
const std::string & | fileName | ||
) | [static] |