A class that contains utility functions/types.
More...
#include <Util.hpp>
A class that contains utility functions/types.
Definition at line 56 of file Util.hpp.
◆ convert_vector_to_shared_array()
template<typename T >
static boost::shared_array<T> lvr2::Util::convert_vector_to_shared_array |
( |
std::vector< T > |
source | ) |
|
|
inlinestatic |
Creates a shared array with the data from the given vector.
- Parameters
-
source | The vector from where the data will be copied |
- Returns
- returns A shared array with a copy of the data from the given vector
Definition at line 108 of file Util.hpp.
◆ deg_to_rad()
template<typename ValueType >
static ValueType lvr2::Util::deg_to_rad |
( |
ValueType |
deg | ) |
|
|
inlinestatic |
Converts an angle from degree to radian.
- Parameters
-
- Returns
- Angle in radians
Definition at line 202 of file Util.hpp.
◆ getSpectralChannel()
int lvr2::Util::getSpectralChannel |
( |
int |
wavelength, |
|
|
PointBufferPtr |
p, |
|
|
int |
fallback = -1 |
|
) |
| |
|
static |
Returns the spectral channel index for a given wavelength.
- Parameters
-
wavelength | The wavenlength |
p | A pointcloud pointer |
fallback | A fallback that will be returned if something went wrong (default -1) |
- Returns
- Returns for a wavelength the corresponding spectral channel index for the pointcloud or fallback if the pointcloud has no spectral channel data or the wavelength is not in the given range of the spectral channel data
Definition at line 35 of file Util.cpp.
◆ getSpectralWavelength()
int lvr2::Util::getSpectralWavelength |
( |
int |
channel, |
|
|
PointBufferPtr |
p, |
|
|
int |
fallback = -1 |
|
) |
| |
|
static |
For a given spectral channel it return the corresponding wavelength.
- Parameters
-
channel | The spectral channel index |
p | A pointcloud pointer |
fallback | A fallback that will be returned if something went wrong (default -1) |
- Returns
- Returns for a spectral channel index the corresponding wavelength for the given pointcloud or fallback if the pointcloud has no spectral channel data or the spectral channel index is out of range.
Definition at line 55 of file Util.cpp.
◆ rad_to_deg()
template<typename ValueType >
static ValueType lvr2::Util::rad_to_deg |
( |
ValueType |
rad | ) |
|
|
inlinestatic |
Converts an angle from radian to degree.
- Parameters
-
- Returns
- Angle in degree
Definition at line 215 of file Util.hpp.
◆ riegl_to_slam6d_transform()
template<typename BaseVecT >
static Matrix4<BaseVecT> lvr2::Util::riegl_to_slam6d_transform |
( |
const Matrix4< BaseVecT > & |
in | ) |
|
|
inlinestatic |
Converts a transformation matrix that is used in riegl coordinate system into a transformation matrix that is used in slam6d coordinate system.
- Parameters
-
in | The transformation matrix in riegl coordinate system |
- Returns
- The transformation matrix in slam6d coordinate system
Definition at line 125 of file Util.hpp.
◆ slam6d_to_riegl_point()
template<typename ValueType >
static BaseVector<ValueType> lvr2::Util::slam6d_to_riegl_point |
( |
const BaseVector< ValueType > & |
in | ) |
|
|
inlinestatic |
◆ slam6d_to_riegl_transform()
Converts a transformation matrix that is used in slam6d coordinate system into a transformation matrix that is used in riegl coordinate system.
- Parameters
-
in | The transformation matrix in slam6d coordinate system |
- Returns
- The transformation matrix in riegl coordinate system
Definition at line 158 of file Util.hpp.
◆ wavelengthPerChannel()
Calculates the wavelength distance between two spectral channels.
- Parameters
-
- Returns
- Returns the wavelength distance between two spectral channels and if the pointcloud has no spectral channel data it return -1
Definition at line 73 of file Util.cpp.
The documentation for this class was generated from the following files: