diff --git a/components/rgbd-sources/src/offilter.cpp b/components/rgbd-sources/src/offilter.cpp index bdf6f40a5bc63757b7b8239b1e8692fb6ea83271..dbdde6904b9aceb3b34c035cacc6c09d7d2e3aaa 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,