MTF
ICLK.h
1 #ifndef MTF_ICLK_H
2 #define MTF_ICLK_H
3 
4 #include "SearchMethod.h"
5 #include "ICLKParams.h"
6 
7 _MTF_BEGIN_NAMESPACE
8 
9 template<class AM, class SSM>
10 class ICLK : public SearchMethod < AM, SSM > {
11 public:
12  typedef ICLKParams ParamType;
13  typedef typename ParamType::HessType HessType;
14 
15  using SearchMethod<AM, SSM> ::am;
16  using SearchMethod<AM, SSM> ::ssm;
17  using typename SearchMethod<AM, SSM> ::AMParams;
18  using typename SearchMethod<AM, SSM> ::SSMParams;
19  using SearchMethod<AM, SSM> ::cv_corners_mat;
20  using SearchMethod<AM, SSM> ::name;
21 
22  using SearchMethod<AM, SSM> ::initialize;
23  using SearchMethod<AM, SSM> ::update;
24 
25  ICLK(const ParamType *iclk_params = nullptr,
26  const AMParams *am_params = nullptr, const SSMParams *ssm_params = nullptr);
27 
28  void initialize(const cv::Mat &corners) override;
29  void update() override;
30  void setRegion(const cv::Mat& corners) 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
38  RowVectorXd df_dp;
40  MatrixXd d2f_dp2_orig, d2f_dp2;
42  MatrixXd dI0_dpssm, dIt_dpssm;
44  MatrixXd d2I0_dpssm2, d2It_dpssm2;
45 
46  Matrix24d prev_corners;
47 
48  VectorXd state_update, ssm_update, am_update;
49  VectorXd inv_ssm_update, inv_am_update;
50 
51  int state_size, ssm_state_size, am_state_size;
52  int frame_id;
53 
54 private:
55  init_profiling();
56  char *log_fname;
57  char *time_fname;
58 
59 
60 };
61 _MTF_END_NAMESPACE
62 
63 #endif
64 
Definition: StateSpaceModel.h:35
Definition: ICLKParams.h:8
Definition: ICLK.h:10
MatrixXd dI0_dpssm
N x S jacobians of the pixel values w.r.t the SSM state vector.
Definition: ICLK.h:42
MatrixXd d2f_dp2_orig
S x S Hessian of the AM error norm w.r.t. SSM state vector.
Definition: ICLK.h:40
Definition: AMParams.h:12
MatrixXd d2I0_dpssm2
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: ICLK.h:44
Definition: SearchMethod.h:10
RowVectorXd df_dp
1 x S Jacobian of the AM error norm w.r.t. SSM state vector
Definition: ICLK.h:38