|
template<typename PointContainer , typename VecContainer > |
static void | CleanInvalidNormals (PointContainer &v, VecContainer &normals) |
|
template<typename baseT , typename expoT > |
constexpr baseT | POW (baseT base, expoT expo) |
| Compile time pow. More...
|
|
template<typename PointContainer > |
static void | TransformPointCloud (PointContainer &v, Eigen::Ref< const Eigen::Matrix< typename PointContainer::value_type::Scalar, 4, 4 >> tr) |
|
template<bool validate, class ndIndexT , class IndexT , class SizeT > |
constexpr IndexT | UnrollIndexLoop (const ndIndexT &coord, IndexT cdim, SizeT gsize) |
| Convert a normalized n-d vector to a linear index in a uniform regular grid This function is recursive, and unrolled at compile time (loop over n). More...
|
|
template<bool validate, class ndIndexT , class IndexT , class SizeT > |
constexpr IndexT | UnrollIndexLoop (const ndIndexT &coord, const ndIndexT &offset, IndexT cdim, SizeT gsize) |
| Convert a normalized n-d vector to a linear index in a uniform regular grid, moved by moved by an offset defined as a integer move in the n-d grid. More...
|
|
template<bool validate, class ndIndexT , class IndexT , class SizeT >
constexpr IndexT gr::Utils::UnrollIndexLoop |
( |
const ndIndexT & |
coord, |
|
|
IndexT |
cdim, |
|
|
SizeT |
gsize |
|
) |
| |
|
inline |
Convert a normalized n-d vector to a linear index in a uniform regular grid This function is recursive, and unrolled at compile time (loop over n).
- Parameters
-
coord | Input coordinates defined in the normalized n-hypercube. |
cdim | Working dimension, must be called with n. |
gsize | Dimension of the grid, must be consistent in all dimensions |
- Template Parameters
-
validate | Enable or disable the range validation |
PointT | Type of the input points (deduced) |
IndexT | Index type (deduced) |
IndexT | Size type (deduced) |
- See also
- internal::IndexValidator for the validation procedure
template<bool validate, class ndIndexT , class IndexT , class SizeT >
constexpr IndexT gr::Utils::UnrollIndexLoop |
( |
const ndIndexT & |
coord, |
|
|
const ndIndexT & |
offset, |
|
|
IndexT |
cdim, |
|
|
SizeT |
gsize |
|
) |
| |
|
inline |
Convert a normalized n-d vector to a linear index in a uniform regular grid, moved by moved by an offset defined as a integer move in the n-d grid.
This function is recursive, and unrolled at compile time (loop over n). In addition, it allows to offset the input coordinates.
- Parameters
-
coord | Input coordinates defined in the normalized n-hypercube. |
cdim | Working dimension, must be called with n. |
gsize | Dimension of the grid, must be consistent in all dimensions |
- See also
- UnrollIndexLoop<class PointT>