From 82e194d559b136264e4ac386614685f645b797c5 Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Mon, 2 Sep 2019 14:27:07 +0300 Subject: [PATCH] Optical flow WIP --- components/rgbd-sources/src/stereovideo.cpp | 2 ++ components/rgbd-sources/src/stereovideo.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/stereovideo.cpp b/components/rgbd-sources/src/stereovideo.cpp index f5257f5cb..9e2de4615 100644 --- a/components/rgbd-sources/src/stereovideo.cpp +++ b/components/rgbd-sources/src/stereovideo.cpp @@ -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_); diff --git a/components/rgbd-sources/src/stereovideo.hpp b/components/rgbd-sources/src/stereovideo.hpp index cd5a0c488..cfbe9f5ef 100644 --- a/components/rgbd-sources/src/stereovideo.hpp +++ b/components/rgbd-sources/src/stereovideo.hpp @@ -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 &); -- GitLab