From 2a496a6d98153bd567c97e77c08d7a3aa9ac9c8a Mon Sep 17 00:00:00 2001 From: Sebastian Hahta <joseha@utu.fi> Date: Mon, 19 Aug 2019 16:09:00 +0300 Subject: [PATCH] temporary fix to isValidDisparity (TODO) --- components/rgbd-sources/src/offilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/rgbd-sources/src/offilter.cpp b/components/rgbd-sources/src/offilter.cpp index e3218b23f..b74ff3ce3 100644 --- a/components/rgbd-sources/src/offilter.cpp +++ b/components/rgbd-sources/src/offilter.cpp @@ -9,7 +9,7 @@ using cv::Size; using std::vector; -template<typename T> static bool inline isValidDisparity(T d) { return true; } +template<typename T> static bool inline isValidDisparity(T d) { return (0.0 < d) && (d < 256.0); } // TODO OFDisparityFilter::OFDisparityFilter(Size size, int n_frames, float threshold) : n_(0), n_max_(n_frames), threshold_(threshold), size_(size) -- GitLab