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 | ( | ) |
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:
bool PointMatcherIO< T >::FileInfoVector::findTransform | ( | const PointMatcherSupport::CsvElements & | data, |
const std::string & | prefix, | ||
unsigned | dim | ||
) | [protected] |
PointMatcherIO< T >::TransformationParameters PointMatcherIO< T >::FileInfoVector::getTransform | ( | const PointMatcherSupport::CsvElements & | data, |
const std::string & | prefix, | ||
unsigned | dim, | ||
unsigned | line | ||
) | [protected] |
std::string PointMatcherIO< T >::FileInfoVector::localToGlobalFileName | ( | const std::string & | path, |
const std::string & | fileName | ||
) | [protected] |