MRPT  1.9.9
mrpt::math::detail::getVicinity< MatrixType, T, ReturnType, D > Struct Template Reference

Detailed Description

template<typename MatrixType, typename T, typename ReturnType, size_t D>
struct mrpt::math::detail::getVicinity< MatrixType, T, ReturnType, D >

This huge template encapsulates a function to get the vicinity of an element, with maximum genericity.

Although it's not meant to be called directly, every type defining the ASSERT_ENOUGHROOM assert and the get_unsafe method will work. The assert checks if the boundaries (r-N,r+N,c-N,c+N) fit in the matrix. The template parameters are the following:

  • MatrixType: the matrix or container base type, from which the vicinity is required.
  • T: the base type of the matrix or container.
  • ReturnType: the returning container type. The class VicinityTraits<ReturnType> must be completely defined.
  • D: the dimension of the vicinity. Current implementations are 4, 5, 8, 9, 12, 13, 20, 21, 24 and 25, although it's easy to implement new variants.

Definition at line 172 of file math_frwds.h.

#include <mrpt/math/math_frwds.h>




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