MTF
IALK.h
1 #ifndef MTF_IALK_H
2 #define MTF_IALK_H
3 
4 #include "SearchMethod.h"
5 #include "IALKParams.h"
6 
7 _MTF_BEGIN_NAMESPACE
8 
9 template<class AM, class SSM>
10 class IALK : public SearchMethod < AM, SSM > {
11 public:
12 
13  typedef IALKParams ParamType;
14  typedef typename ParamType::HessType HessType;
15 
16  using SearchMethod<AM, SSM> ::am;
17  using SearchMethod<AM, SSM> ::ssm;
18  using typename SearchMethod<AM, SSM> ::AMParams;
19  using typename SearchMethod<AM, SSM> ::SSMParams;
20  using SearchMethod<AM, SSM> ::cv_corners_mat;
21  using SearchMethod<AM, SSM> ::name;
22 
23  using SearchMethod<AM, SSM> ::initialize;
24  using SearchMethod<AM, SSM> ::update;
25 
26  IALK(const ParamType *ialk_params = nullptr,
27  const AMParams *am_params = nullptr, const SSMParams *ssm_params = nullptr);
28 
29  void initialize(const cv::Mat &corners) override;
30  void update() override;
31 
32 protected:
33 
34  ParamType params;
35 
36  // Let S = size of SSM state vector and N = resx * resy = no. of pixels in the object patch
37 
39  RowVectorXd jacobian;
41  MatrixXd init_self_hessian, hessian;
45  MatrixXd init_pix_jacobian, curr_pix_jacobian;
47  MatrixXd init_pix_hessian, curr_pix_hessian;
48 
49  Matrix24d prev_corners;
50  VectorXd ssm_update;
51  Matrix3d warp_update;
52  int frame_id;
53 
54 
55  init_profiling();
56  char *log_fname;
57  char *time_fname;
58 
59 };
60 _MTF_END_NAMESPACE
61 
62 #endif
63 
MatrixXd init_pix_hessian
N x S x S hessians of the pixel values w.r.t the SSM state vector stored as a (S*S) x N 2D matrix...
Definition: IALK.h:47
Definition: StateSpaceModel.h:35
Definition: IALKParams.h:8
Definition: IALK.h:10
Definition: AMParams.h:12
Definition: SearchMethod.h:10
MatrixXd init_self_hessian
S x S Hessian of the AM error norm w.r.t. SSM state vector.
Definition: IALK.h:41
RowVectorXd jacobian
1 x S Jacobian of the AM error norm w.r.t. SSM state vector
Definition: IALK.h:39
MatrixXd init_pix_jacobian
N x S jacobians of the pix values w.r.t the SSM state vector where N = resx * resy is the no...
Definition: IALK.h:45