MRPT  2.0.0
Classes | Functions
libLAS interface for CPointsMap (in

Detailed Description

#include <mrpt/maps/CPointsMaps_liblas.h>)

Collaboration diagram for libLAS interface for CPointsMap (in:

Classes

struct  mrpt::maps::LAS_WriteParams
 Optional settings for saveLASFile() More...
 
struct  mrpt::maps::LAS_LoadParams
 Optional settings for loadLASFile() More...
 
struct  mrpt::maps::LAS_HeaderInfo
 Extra information gathered from the LAS file header. More...
 

Functions

template<class POINTSMAP >
bool mrpt::maps::saveLASFile (const POINTSMAP &ptmap, const std::string &filename, const LAS_WriteParams &params=LAS_WriteParams())
 Save the point cloud as an ASPRS LAS binary file (requires MRPT built against liblas). More...
 
template<class POINTSMAP >
bool mrpt::maps::loadLASFile (POINTSMAP &ptmap, const std::string &filename, LAS_HeaderInfo &out_headerInfo, const LAS_LoadParams &params=LAS_LoadParams())
 Load the point cloud from an ASPRS LAS binary file (requires MRPT built against liblas). More...
 

Function Documentation

◆ loadLASFile()

template<class POINTSMAP >
bool mrpt::maps::loadLASFile ( POINTSMAP &  ptmap,
const std::string &  filename,
LAS_HeaderInfo out_headerInfo,
const LAS_LoadParams params = LAS_LoadParams() 
)

Load the point cloud from an ASPRS LAS binary file (requires MRPT built against liblas).

Refer to http://www.liblas.org/

Note
Color (RGB) information will be taken into account if using the derived class mrpt::maps::CColouredPointsMap
Returns
false on any error

Definition at line 128 of file CPointsMap_liblas.h.

References mrpt::maps::LAS_HeaderInfo::creation_DOY, mrpt::maps::LAS_HeaderInfo::creation_year, mrpt::maps::LAS_HeaderInfo::FileSignature, mrpt::obs::gnss::header, mrpt::maps::LAS_HeaderInfo::project_guid, mrpt::maps::LAS_HeaderInfo::SoftwareIdentifier, mrpt::maps::LAS_HeaderInfo::spatial_reference_proj4, and mrpt::maps::LAS_HeaderInfo::SystemIdentifier.

◆ saveLASFile()

template<class POINTSMAP >
bool mrpt::maps::saveLASFile ( const POINTSMAP &  ptmap,
const std::string &  filename,
const LAS_WriteParams params = LAS_WriteParams() 
)

Save the point cloud as an ASPRS LAS binary file (requires MRPT built against liblas).

Refer to http://www.liblas.org/

Returns
false on any error

Definition at line 65 of file CPointsMap_liblas.h.

References G, mrpt::obs::gnss::header, out, and R.




Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020