MCPcopy Create free account
hub / github.com/Smorodov/Multitarget-tracker / GetPointPrediction

Method GetPointPrediction

src/Tracker/Kalman.cpp:655–681  ·  view source on GitHub ↗

\brief TKalmanFilter::GetPointPrediction \return

Source from the content-addressed store, hash-verified

653/// \return
654///
655Point_t TKalmanFilter::GetPointPrediction()
656{
657 if (m_initialized)
658 {
659 cv::Mat prediction;
660
661 switch (m_type)
662 {
663 case tracking::KalmanLinear:
664 prediction = m_linearKalman.predict();
665 break;
666
667 case tracking::KalmanUnscented:
668 case tracking::KalmanAugmentedUnscented:
669#ifdef USE_OCV_UKF
670 prediction = m_uncsentedKalman->predict();
671#else
672 prediction = m_linearKalman.predict();
673 std::cerr << "UnscentedKalmanFilter was disabled in CMAKE! Set KalmanLinear in constructor." << std::endl;
674#endif
675 break;
676 }
677
678 m_lastPointResult = Point_t(prediction.at<track_t>(0), prediction.at<track_t>(1));
679 }
680 return m_lastPointResult;
681}
682
683///
684/// \brief TKalmanFilter::Update

Callers 1

KalmanPredictPointMethod · 0.80

Calls 1

predictMethod · 0.45

Tested by

no test coverage detected