Skip to content
Snippets Groups Projects
Commit 82e194d5 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

Optical flow WIP

parent b393a16d
No related branches found
No related tags found
2 merge requests!105CUDA optical flow smoothing,!103feature/frame class
Pipeline #13287 passed
This commit is part of merge request !105. Comments created here will be created in the context of that merge request.
......@@ -61,11 +61,13 @@ void StereoVideoSource::init(const string &file)
frames_ = std::vector<Frame>(2);
#ifdef HAVE_OPTFLOW
/*
// TODO make optional, can be calculated at later step
nvof_ = cv::cuda::NvidiaOpticalFlow_1_0::create(size.width, size.height,
cv::cuda::NvidiaOpticalFlow_1_0::NV_OF_PERF_LEVEL_SLOW,
true, false, false, 0);
*/
#endif
calib_ = ftl::create<Calibrate>(host_, "calibration", size, stream_);
......
......@@ -50,7 +50,7 @@ class StereoVideoSource : public detail::Source {
cv::Mat mask_l_;
#ifdef HAVE_OPTFLOW
cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0> nvof_;
// cv::Ptr<cv::cuda::NvidiaOpticalFlow_1_0> nvof_;
#endif
void init(const std::string &);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment