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

mask left area (max_disp)

parent 7c1f8c47
No related branches found
No related tags found
No related merge requests found
Pipeline #11464 failed
......@@ -42,7 +42,10 @@ void FixstarsSGM::compute(const cv::Mat &l, const cv::Mat &r, cv::Mat &disp) {
// todo: fix libSGM (return float data or provide mask separately)
// disparity values set to (256 << 5) in libSGM consistency check
Mat bad_pixels = (disp == (256 << 5));
disp.setTo(0, bad_pixels);
Mat left_pixels(cv::Rect(0, 0, max_disp_, disp.rows));
left_pixels = 0;
if (use_filter_) {
cv::cuda::GpuMat l_gpu, disp_gpu, disp_gpu_out;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment