1 #ifndef MTF_LINE_TRACKER_H 2 #define MTF_LINE_TRACKER_H 4 #include "CompositeBase.h" 5 #include "mtf/Macros/common.h" 7 #define LINE_GRID_SIZE_X 5 8 #define LINE_GRID_SIZE_Y 5 9 #define LINE_PATCH_SIZE 25 10 #define LINE_USE_CONSTANT_SLOPE false 11 #define LINE_USE_LS false 12 #define LINE_INTER_ALPHA_THRESH 0.1 13 #define LINE_INTRA_ALPHA_THRESH 0.05 14 #define LINE_RESET_POS false 15 #define LINE_RESET_TEMPLATE false 16 #define LINE_DEBUG_MODE false 22 #define PI_RAD 3.14159265358979323846 32 lineParams(
double _m = 0,
double _c = 0,
double _c_diff=0,
55 double inter_alpha_diff[2];
56 double intra_alpha_diff[2];
83 void init(
int no_of_pts,
int type);
84 void assignAddrs(
gridPoint *start_addr =
nullptr,
int offset_diff = 1);
88 int grid_size_x, grid_size_y;
90 int use_constant_slope;
92 double inter_alpha_thresh;
93 double intra_alpha_thresh;
98 int patch_size,
bool use_constant_slope,
bool use_ls,
99 double inter_alpha_thresh,
double intra_alpha_thresh,
100 bool reset_pos,
bool reset_template,
bool debug_mode);
111 const ParamType *line_params =
nullptr);
113 void initialize(
const cv::Mat& cv_corners)
override;
114 void update()
override;
119 int corner_tracker_ids[4];
122 cv::Point2d *tracker_pos;
123 cv::Point2d wt_mean_pt;
138 void initGridPositions(
const cv::Mat& cv_corners);
140 int no_of_lines,
int line_type);
142 int no_of_lines,
int line_type);
144 int no_of_lines,
int line_type);
145 void resetLineParamsToPrev(
gridLine* curr_lines,
146 gridLine* prev_lines,
int no_of_lines);
148 int no_of_lines,
int reset_c = 0);
149 void updateGridWithLineIntersections();
151 void updateDistanceWeights();
152 void resetTrackerStates();
153 void updateCVCorners();
Definition: CompositeBase.h:10
Definition: LineTracker.h:62
Definition: LineTracker.h:87
Definition: LineTracker.h:41
Definition: LineTracker.h:26
Definition: LineTracker.h:104