MRPT  1.9.9
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 129 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 66 of file CPointsMap_liblas.h.

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




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020