From d117c56375c04d3753973ebe856bd4d658c21dbd Mon Sep 17 00:00:00 2001
From: Sebastian Hahta <joseha@utu.fi>
Date: Fri, 13 Sep 2019 15:25:36 +0300
Subject: [PATCH] incorrect assert

---
 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 bdf6f40a5..dbdde6904 100644
--- a/components/rgbd-sources/src/offilter.cpp
+++ b/components/rgbd-sources/src/offilter.cpp
@@ -17,7 +17,7 @@ template<typename T> static bool inline isValidDisparity(T d) { return (0.0 < d)
 OFDisparityFilter::OFDisparityFilter(Size size, int n_frames, float threshold) :
 	n_max_(n_frames + 1), threshold_(threshold)
 {
-	CHECK((n_max_ > 1) && (n_max_ >= 32)) << "History length must be between 0 and 31!";
+	CHECK((n_max_ > 1) && (n_max_ <= 32)) << "History length must be between 0 and 31!";
 	disp_old_ = cv::cuda::GpuMat(cv::Size(size.width * n_max_, size.height), CV_32FC1);
 	
 	/*nvof_ = cv::cuda::NvidiaOpticalFlow_1_0::create(size.width, size.height,
-- 
GitLab