A vector of file info, to be used in batch processing. More...
#include <IO.h>
Public Member Functions | |
FileInfoVector () | |
FileInfoVector (const std::string &fileName, std::string dataPath="", std::string configPath="") | |
Load a vector of FileInfo from a CSV file. | |
Protected Member Functions | |
bool | findTransform (const PointMatcherSupport::CsvElements &data, const std::string &prefix, unsigned dim) |
Return whether there is a valid transformation named prefix in data. | |
TransformationParameters | getTransform (const PointMatcherSupport::CsvElements &data, const std::string &prefix, unsigned dim, unsigned line) |
Return the transformation named prefix from data. | |
std::string | localToGlobalFileName (const std::string &path, const std::string &fileName) |
Join parentPath and fileName and return the result as a global path. |
A vector of file info, to be used in batch processing.
PointMatcherIO< T >::FileInfoVector::FileInfoVector | ( | ) |
Definition at line 180 of file pointmatcher/IO.cpp.
PointMatcherIO< T >::FileInfoVector::FileInfoVector | ( | const std::string & | fileName, |
std::string | dataPath = "" , |
||
std::string | configPath = "" |
||
) |
Load a vector of FileInfo from a CSV file.
fileName | name of the CSV file |
dataPath | path relative to which the point cloud CSV or VTK will be resolved |
configPath | path relative to which the yaml configuration files will be resolved |
The first line of the CSV file must contain a header. The supported tags are:
Definition at line 199 of file pointmatcher/IO.cpp.
bool PointMatcherIO< T >::FileInfoVector::findTransform | ( | const PointMatcherSupport::CsvElements & | data, |
const std::string & | prefix, | ||
unsigned | dim | ||
) | [protected] |
Return whether there is a valid transformation named prefix in data.
Definition at line 317 of file pointmatcher/IO.cpp.
PointMatcherIO< T >::TransformationParameters PointMatcherIO< T >::FileInfoVector::getTransform | ( | const PointMatcherSupport::CsvElements & | data, |
const std::string & | prefix, | ||
unsigned | dim, | ||
unsigned | line | ||
) | [protected] |
Return the transformation named prefix from data.
Definition at line 334 of file pointmatcher/IO.cpp.
std::string PointMatcherIO< T >::FileInfoVector::localToGlobalFileName | ( | const std::string & | path, |
const std::string & | fileName | ||
) | [protected] |
Join parentPath and fileName and return the result as a global path.
Definition at line 299 of file pointmatcher/IO.cpp.