1 #ifndef CAFFE2_VIDEO_OPTICAL_FLOW_H_ 2 #define CAFFE2_VIDEO_OPTICAL_FLOW_H_ 4 #include <opencv2/core.hpp> 5 #include <opencv2/highgui.hpp> 6 #include <opencv2/opencv.hpp> 7 #include <opencv2/video.hpp> 9 #include <caffe2/core/logging.h> 17 FarnebackOpticalFlow = 0,
18 DensePyrLKOpticalFlow = 1,
20 OpticalFlowDual_TVL1 = 3,
35 void OpticalFlowExtractor(
36 const cv::Mat& prev_gray,
37 const cv::Mat& curr_gray,
38 const int optical_flow_alg_type,
41 void MergeOpticalFlow(cv::Mat& prev_flow,
const cv::Mat& curr_flow);
43 void MultiFrameOpticalFlowExtractor(
44 const std::vector<cv::Mat>& grays,
45 const int optical_flow_alg_type,
50 #endif // CAFFE2_VIDEO_OPTICAL_FLOW_H_ A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...