MTF
GridTrackerFlowParams.h
1 #ifndef MTF_GRID_TRACKER_FLOW_PARAMS_H
2 #define MTF_GRID_TRACKER_FLOW_PARAMS_H
3 
4 #include "mtf/Macros/common.h"
5 
6 #define GTFLOW_GRID_SIZE_X 10
7 #define GTFLOW_GRID_SIZE_Y 10
8 #define GTFLOW_SEARCH_WINDOW_X 10
9 #define GTFLOW_SEARCH_WINDOW_Y 10
10 #define GTFLOW_PYRAMID_LEVELS 0
11 #define GTFLOW_USE_MIN_EIG_VALS 0
12 #define GTFLOW_MIN_EIG_THRESH 1e-4
13 #define GTFLOW_MAX_ITERS 30
14 #define GTFLOW_EPSILON 0.01
15 #define GTFLOW_SHOW_TRACKERS 0
16 #define GTFLOW_SHOW_TRACKER_EDGES 0
17 #define GTFLOW_DEBUG_MODE 0
18 
19 _MTF_BEGIN_NAMESPACE
20 
22 
23  int grid_size_x, grid_size_y;
24  int search_window_x, search_window_y;
25 
26  int pyramid_levels;
27  bool use_const_grad;
28  double min_eig_thresh;
29 
30  int max_iters;
31  double epsilon;
32 
33  bool show_trackers;// show the locations of individual patch trackers
34 
35  bool debug_mode;
36 
39  int _grid_size_x, int _grid_size_y,
40  int _search_window_x, int _search_window_y,
41  int _pyramid_levels, bool _use_const_grad,
42  double _min_eig_thresh, int _max_iters,
43  double _epsilon, bool _show_trackers,
44  bool _debug_mode);
45  GridTrackerFlowParams(const GridTrackerFlowParams *params = nullptr);
46 
47  int getResX() const{ return resx; }
48  int getResY() const{ return resy; }
49 
50 private:
51  int resx, resy;
52 };
53 
54 _MTF_END_NAMESPACE
55 
56 #endif
57 
double epsilon
maximum iterations of the GridTrackerFlow algorithm to run for each frame
Definition: GridTrackerFlowParams.h:31
Definition: GridTrackerFlowParams.h:21
GridTrackerFlowParams(int _grid_size_x, int _grid_size_y, int _search_window_x, int _search_window_y, int _pyramid_levels, bool _use_const_grad, double _min_eig_thresh, int _max_iters, double _epsilon, bool _show_trackers, bool _debug_mode)
decides whether logging data will be printed for debugging purposes;