MTF
PyramidalSM.h
1 #ifndef MTF_PYRAMIDAL_SM_H
2 #define MTF_PYRAMIDAL_SM_H
3 
4 #include "CompositeSM.h"
5 #include "mtf/SM/PyramidalParams.h"
6 
7 _MTF_BEGIN_NAMESPACE
8 
15 template<class AM, class SSM>
16 class PyramidalSM : public CompositeSM < AM, SSM > {
17 
18 public:
19  typedef PyramidalParams ParamType;
20 
21  using typename CompositeSM<AM, SSM>::SM;
22  typedef typename SM::SSMParams SSMParams;
28 
29  PyramidalSM(const vector<SM*> &_trackers,
30  const ParamType *parl_params);
31  void setImage(const cv::Mat &img) override;
32  void initialize(const cv::Mat &corners) override;
33  void update() override;
34  const cv::Mat& getRegion() override {
35  return trackers[0]->getRegion();
36  }
37  void setRegion(const cv::Mat& corners) override;
38  void setImagePyramid(const vector<cv::Mat> &_img_pyramid);
39  const vector<cv::Mat>& getImagePyramid() const{ return img_pyramid; }
40 
41 protected:
42 
43  ParamType params;
44 
45  vector<cv::Size> img_sizes;
46  vector<cv::Mat> img_pyramid;
47  double overall_scale_factor;
48  bool external_img_pyramid;
49  void updateImagePyramid();
50  void showImagePyramid();
51 };
52 
53 _MTF_END_NAMESPACE
54 
55 #endif
56 
Definition: StateSpaceModel.h:35
base class for all composite search methods
Definition: CompositeSM.h:11
Definition: PyramidalParams.h:14
Definition: SearchMethod.h:10
run multiple search methods with the same AM/SSM on a Gaussian image pyramid; although the code here ...
Definition: PyramidalSM.h:16