LiveFit
Track and plot projectiles for in-class demonstration
KalmanFilterPlus.hpp
1 /*
2  * LiveFit
3  * Copyright (C) 2016 The University of Georgia
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 #ifndef KALMANFILTERPLUS_HPP
21 #define KALMANFILTERPLUS_HPP
22 
23 #include <opencv2/video/tracking.hpp>
24 
25 #include <opencv2/core.hpp>
26 
30 class KalmanFilterPlus : public cv::KalmanFilter
31 {
32  double mAlphaSq;
33 
34 public:
36 
37  KalmanFilterPlus(int dynamParams, int measureParams,
38  int controlParams = 0, int type = CV_32F);
39 
42  const cv::Mat& predict(const cv::Mat& control = cv::Mat());
43 
44  void setAlphaSq(double value);
45 };
46 
47 #endif // KALMANFILTERPLUS_HPP
const cv::Mat & predict(const cv::Mat &control=cv::Mat())
Predict the location of the ball.
Definition: KalmanFilterPlus.cpp:40
A cv::KalmanFilter which also supports some &#39;forgetful&#39; functionality.
Definition: KalmanFilterPlus.hpp:30