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

incorrect assert

parent f4e3a365
No related branches found
No related tags found
1 merge request!105CUDA optical flow smoothing
Pipeline #13576 passed
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment