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

apply optical flow filter before bilateral

parent ef09155a
No related branches found
No related tags found
1 merge request!157feature/vision parameters
Pipeline #16101 failed
This commit is part of merge request !157. Comments created here will be created in the context of that merge request.
......@@ -205,6 +205,10 @@ void FixstarsSGM::compute(ftl::rgbd::Frame &frame, cv::cuda::Stream &stream)
left_pixels.setTo(0);
cv::cuda::threshold(dispt_, dispt_, 4096.0f, 0.0f, cv::THRESH_TOZERO_INV, stream);
#ifdef HAVE_OPTFLOW
if (use_off_) { off_.filter(frame, stream); }
#endif
// TODO: filter could be applied after upscaling (to the upscaled disparity image)
if (use_filter_)
{
......@@ -228,9 +232,6 @@ void FixstarsSGM::compute(ftl::rgbd::Frame &frame, cv::cuda::Stream &stream)
dispt_scaled.convertTo(disp, CV_32F, 1.0f / 16.0f, stream);
#ifdef HAVE_OPTFLOW
if (use_off_) { off_.filter(frame, stream); }
#endif
}
void FixstarsSGM::setMask(Mat &mask) {
......
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