Template Struct CLogOddsGridMapLUT
Defined in File CLogOddsGridMapLUT.h
Inheritance Relationships
Base Type
public mrpt::maps::detail::logoddscell_traits< TCELL >(Template Struct logoddscell_traits)
Struct Documentation
-
template<typename TCELL>
struct CLogOddsGridMapLUT : public mrpt::maps::detail::logoddscell_traits<TCELL> One static instance of this struct should exist in any class implementing CLogOddsGridMap2D to hold the Look-up-tables (LUTs) for log-odss Bayesian update. Map cells must be type TCELL, which can be only:
int8_t or
int16_t
See also
CLogOddsGridMap2D, see derived classes for usage examples.
Public Functions
-
inline CLogOddsGridMapLUT()
Constructor: computes all the required stuff.
-
inline float l2p(const cell_t l)
Scales an integer representation of the log-odd into a real valued probability in [0,1], using p=exp(l)/(1+exp(l))
Public Members
-
std::vector<float> logoddsTable
A lookup table to compute occupancy probabilities in [0,1] from integer log-odds values in the cells, using \( p(m_{xy}) = \frac{1}{1+exp(-log_odd)} \).
-
std::vector<uint8_t> logoddsTable_255
A lookup table to compute occupancy probabilities in the range [0,255] from integer log-odds values in the cells, using \( p(m_{xy}) = \frac{1}{1+exp(-log_odd)} \). This is used to speed-up conversions to grayscale images.