mtt_kalman.h
Go to the documentation of this file.
1 /**************************************************************************************************
2  Software License Agreement (BSD License)
3 
4  Copyright (c) 2011-2013, LAR toolkit developers - University of Aveiro - http://lars.mec.ua.pt
5  All rights reserved.
6 
7  Redistribution and use in source and binary forms, with or without modification, are permitted
8  provided that the following conditions are met:
9 
10  *Redistributions of source code must retain the above copyright notice, this list of
11  conditions and the following disclaimer.
12  *Redistributions in binary form must reproduce the above copyright notice, this list of
13  conditions and the following disclaimer in the documentation and/or other materials provided
14  with the distribution.
15  *Neither the name of the University of Aveiro nor the names of its contributors may be used to
16  endorse or promote products derived from this software without specific prior written permission.
17 
18  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
19  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20  FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
21  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
24  IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 ***************************************************************************************************/
32 #ifndef _MTT_KALMAN_H_
33 #define _MTT_KALMAN_H_
34 
35 #include "mtt_common.h"
36 
37 extern void SetSearchArea(t_list& list,t_config&config);
38 extern void AddPointPath(t_path*path,double x,double y);
39 // void MotionModelsIteration(t_list*list,t_config*config);
40 void MotionModelsIteration(vector<t_listPtr> &list,t_config& config);
41 
42 void GetErrorConvariance(t_errors*error);
43 void AllocMotionModels(t_list&list,t_config&config);
44 extern int real2print(double x,t_config*config);
45 extern double point2line_distance(double alpha,double ro,double x,double y);
46 
47 void UpdateTransitionMatrixCTRV(CvKalman*model,double /*x*/,double /*y*/,double t,double v,double w,double dt);
48 void UpdateTransitionMatrixCV(CvKalman*model,double dt);
49 void UpdateTransitionMatrixCV_SC(CvKalman*model,double dt);
50 
51 void IterateMotionModelCTRV(CvKalman*model,double vm,double wm);
52 void IterateMotionModelCV(CvKalman*model,double vxm,double vym);
53 double IterateMotionModelCV_SC(CvKalman*model,double vm);
54 
55 CvKalman*CreateModelCTRV(void);
56 CvKalman*CreateModelCV(void);
57 CvKalman*CreateModelCV_SC(void);
58 
59 extern double s[6];
60 extern double vel,theta;
61 extern int select_object;
62 extern FILE*fp;
63 extern double grxy;
64 void dA_FwdCt(CvKalman*model,double q[6],double dt,double l=2.54);
65 void dH_FwdCt(CvKalman*model);
66 void IterateMotionModelFwdCt(CvKalman*model,double z[2]);
67 CvKalman*CreateModelFwdCt(void);
68 
69 #endif
void dH_FwdCt(CvKalman *model)
int select_object
Definition: mtt_kalman.cpp:36
void SetSearchArea(t_list &list, t_config &config)
Estimation errors.
Definition: mtt_common.h:266
List of XY points.
Definition: mtt_common.h:307
double vel
int real2print(double x, t_config *config)
double IterateMotionModelCV_SC(CvKalman *model, double vm)
Definition: mtt_kalman.cpp:874
CvKalman * CreateModelCTRV(void)
Definition: mtt_kalman.cpp:638
double s[6]
FILE * fp
Full description of and tracked object.
Definition: mtt_common.h:394
void UpdateTransitionMatrixCTRV(CvKalman *model, double, double, double t, double v, double w, double dt)
void dA_FwdCt(CvKalman *model, double q[6], double dt, double l=2.54)
double point2line_distance(double alpha, double ro, double x, double y)
Calculates the line to point distance.
CvKalman * CreateModelCV_SC(void)
Definition: mtt_kalman.cpp:674
void MotionModelsIteration(vector< t_listPtr > &list, t_config &config)
Definition: mtt_kalman.cpp:64
void IterateMotionModelCV(CvKalman *model, double vxm, double vym)
Definition: mtt_kalman.cpp:913
Timer t
Definition: k_best.cpp:34
double theta
void IterateMotionModelCTRV(CvKalman *model, double vm, double wm)
Definition: mtt_kalman.cpp:780
void AllocMotionModels(t_list &list, t_config &config)
Definition: mtt_kalman.cpp:415
void AddPointPath(t_path *path, double x, double y)
void GetErrorConvariance(t_errors *error)
Get covariance.
Definition: mtt_kalman.cpp:508
This structure contains global configurations parameters.
Definition: mtt_common.h:137
void UpdateTransitionMatrixCV_SC(CvKalman *model, double dt)
Definition: mtt_kalman.cpp:955
void UpdateTransitionMatrixCV(CvKalman *model, double dt)
Definition: mtt_kalman.cpp:975
Header with common structures and includes.
double grxy
void IterateMotionModelFwdCt(CvKalman *model, double z[2])
Definition: mtt_kalman.cpp:842
CvKalman * CreateModelFwdCt(void)
Definition: mtt_kalman.cpp:757
CvKalman * CreateModelCV(void)
Definition: mtt_kalman.cpp:706


mtt
Author(s): Jorge Almeida
autogenerated on Mon Mar 2 2015 01:32:18