Go to the documentation of this file.
38 #define _USE_MATH_DEFINES
56 using std::stringstream;
61 using Vec = BaseVector<float>;
123 void reduce(
string dir,
string target,
int reduction = 1);
180 ss << std::setfill(
'0') << std::setw(width) << t;
204 return (
float)((2 *
M_PI *
deg) / 360);
216 return (
float)((
rad * 360) / (2 *
M_PI));
void setLastScan(int n)
Defines the last scan to read.
std::string to_string(const int &t)
bool m_saveRemissionColor
If true, remission values will be converted to color.
A 4x4 matrix class implementation for use with the provided vertex types.
void readOldFormat(ModelPtr &m, string dir, int first, int last, size_t &n)
Reads scans from first} to last} in old UOS format.
int m_reductionTarget
Number of targeted points for reduction.
void setFirstScan(int n)
Defines the first scan to read.
void saveRemissionAsColor(bool convert)
Convert remission value to pseudo RGB values while saving.
bool m_saveRemission
If true, the original remission information will be saved.
Read and write pointclouds from .pts and .3d files.
int m_firstScan
The first scan to read (or -1 if all scans should be processed)
int m_lastScan
The last scan to read (or -1 if all scans should be processed)
void saveRemission(bool yes)
Save remission (if present)
bool m_saveToDisk
If true, the read point will not be stored in local memory.
void reduce(string dir, string target, int reduction=1)
float rad(const float deg)
std::string to_string(const int &t, int width)
An input class for laser scans in UOS 3d format.
void save(string filename)
void convert(COORD_SYSTEM from, COORD_SYSTEM to, float *point)
int m_numScans
Number of loaded scans.
float deg(const float rad)
Matrix4< Vec > parseFrameFile(ifstream &frameFile)
Creates a transformation matrix from given frame file.
Base interface for all I/O related classes.
std::shared_ptr< Model > ModelPtr
void readNewFormat(ModelPtr &m, string dir, int first, int last, size_t &n)
Reads scans from first} to last} in new UOS format.
ofstream m_outputFile
Filestream to save reduced data.
Interface specification for low-level io. All read elements are stored in linear arrays.
ModelPtr read(string dir)
Reads all scans or an specified range of scans from the given directory.
lvr2
Author(s): Thomas Wiemann
, Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:25