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

missing check

parent fe463fb1
No related branches found
No related tags found
1 merge request!105CUDA optical flow smoothing
Pipeline #13582 passed
......@@ -31,8 +31,9 @@ void OFDisparityFilter::filter(ftl::rgbd::Frame &frame, cv::cuda::Stream &stream
const cv::cuda::GpuMat &optflow = frame.getChannel<cv::cuda::GpuMat>(kChanFlow, stream);
frame.getChannel<cv::cuda::GpuMat>(kChanDisparity, stream);
stream.waitForCompletion();
cv::cuda::GpuMat &disp = frame.setChannel<cv::cuda::GpuMat>(kChanDisparity);
if (optflow.empty()) { return; }
cv::cuda::GpuMat &disp = frame.setChannel<cv::cuda::GpuMat>(kChanDisparity);
ftl::cuda::optflow_filter(disp, optflow, disp_old_, n_max_, threshold_, stream);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment