MTF
ZNCC.h
1 #ifndef MTF_ZNCC_H
2 #define MTF_ZNCC_H
3 
4 #include "SSDBase.h"
5 
6 _MTF_BEGIN_NAMESPACE
7 
11  bool debug_mode;
13  ZNCCParams(const AMParams *am_params,
14  bool _debug_mode);
16  ZNCCParams(const ZNCCParams *params = nullptr);
17 };
18 // Zero mean Normalized Cross Correlation
19 class ZNCC : public SSDBase{
20 public:
21 
22  typedef ZNCCParams ParamType;
23 
24  ZNCC(const ParamType *ncc_params = nullptr, const int _n_channels = 1);
25  void initializePixVals(const Matrix2Xd& curr_pts) override;
26  void updatePixVals(const Matrix2Xd& curr_pts) override;
27  double getLikelihood() const override;
28 
29 protected:
30  ParamType params;
32  double I0_mean, I0_var, I0_std;
34  double It_mean, It_var, It_std;
35 
36 };
37 
38 _MTF_END_NAMESPACE
39 
40 #endif
double It_mean
mean, variance and standard deviation of the current pixel values
Definition: ZNCC.h:34
Definition: SSDBase.h:45
ZNCCParams(const AMParams *am_params, bool _debug_mode)
value constructor
Definition: AMParams.h:12
bool debug_mode
decides whether logging data will be printed for debugging purposes; only matters if logging is enabl...
Definition: ZNCC.h:11
double I0_mean
mean, variance and standard deviation of the initial pixel values
Definition: ZNCC.h:32
Definition: ZNCC.h:8
Definition: ZNCC.h:19