\brief TKalmanFilter::GetPointPrediction \return
| 653 | /// \return |
| 654 | /// |
| 655 | Point_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 |
no test coverage detected