28 #ifndef BAYESFILTER_H_
29 #define BAYESFILTER_H_
31 #include "rtabmap/core/rtabmap_core_export.h"
33 #include <opencv2/core/core.hpp>
49 virtual void parseParameters(
const ParametersMap & parameters);
50 const std::map<int, float> & computePosterior(
const Memory * memory,
const std::map<int, float> & likelihood);
54 void setPredictionLC(
const std::string & prediction);
57 const std::map<int, float> &
getPosterior()
const {
return _posterior;}
59 const std::vector<double> & getPredictionLC()
const;
60 std::string getPredictionLCStr()
const;
62 cv::Mat generatePrediction(
const Memory * memory,
const std::vector<int> & ids);
64 unsigned long getMemoryUsed()
const;
67 cv::Mat updatePrediction(
const cv::Mat & oldPrediction,
69 const std::vector<int> & oldIds,
70 const std::vector<int> & newIds);
71 void updatePosterior(
const Memory * memory,
const std::vector<int> & likelihoodIds);
72 void normalize(cv::Mat & prediction,
unsigned int index,
float addedProbabilitiesSum,
bool virtualPlaceUsed)
const;