21 #ifndef CV_OPTICAL_FLOW_H_
22 #define CV_OPTICAL_FLOW_H_
29 #ifdef KJB_HAVE_OPENCV
40 #define CV_LKFLOW_PYR_A_READY 1
41 #define CV_LKFLOW_PYR_B_READY 2
42 #define CV_LKFLOW_INITIAL_GUESSES 4
44 #define DEFAULT_WINDOW_HEIGHT 15
45 #define DEFAULT_WINDOW_WIDTH 15
46 #define DEFAULT_MAX_LEVEL 3
53 #ifdef KJB_HAVE_OPENCV
55 struct CV_optical_flow_feature
59 CV_optical_flow_feature() {}
61 CV_optical_flow_feature(
size_t id_,
const Vector& value_)
62 :
id(id_), value(value_)
66 class CV_optical_flow_pyr_lk
70 CV_optical_flow_pyr_lk()
74 criteria(CV_term_criteria()),
78 CV_optical_flow_pyr_lk
83 const CV_term_criteria& criteria_,
86 window_height(window_height_),
87 window_width(window_width_),
88 max_level(max_level_),
93 std::vector<Vector> get_next_features
95 const Image& prev_image,
96 const Image& next_image,
97 const std::vector<Vector>& prev_features
103 std::vector<CV_optical_flow_feature> get_next_features
105 const Image& prev_image,
106 const Image& next_image,
107 const std::vector<CV_optical_flow_feature>& prev_features
110 std::vector<CV_optical_flow_feature> convert_to_optical_flow_feature
112 const std::vector<Vector> & features
120 const std::string& out_fname,
121 const std::vector<Vector>& cur_features,
122 const std::vector<Vector>& next_features
130 const std::string& out_fname,
131 const std::vector<CV_optical_flow_feature>& cur_features,
132 const std::vector<CV_optical_flow_feature>& next_features
153 CV_term_criteria criteria;
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
#define DEFAULT_MAX_LEVEL
Definition: cv_optical_flow.h:46
#define DEFAULT_WINDOW_HEIGHT
Definition: cv_optical_flow.h:44
#define DEFAULT_WINDOW_WIDTH
Definition: cv_optical_flow.h:45
end get the endpoints of the long edges and an image of the long edges for id
Definition: APPgetLargeConnectedEdges.m:96
Code for a wrapper class around the C struct KJB_Image.
Definition for the Vector class, a thin wrapper on the KJB Vector struct and its related functionalit...