ximgproc: Fix support for CV_32F WLS Filter

If the disparity maps have the depth CV_32F, they are wls-filtered
in `DisparityWLSFilterImpl::filter` but the result is not saved in the
OutputArray of the method. Now, the result is copied to that array.
pull/2065/head
Julian Seuffert 6 years ago
parent 6d16876ee2
commit 826b77e567
  1. 2
      modules/ximgproc/src/disparity_filters.cpp

@ -244,6 +244,8 @@ void DisparityWLSFilterImpl::filter(InputArray disparity_map_left, InputArray le
filter_(left, left_view, filt_disp, right, ROI);
if (disparity_map_left.depth() != CV_32F){
filt_disp.convertTo(filtered_disparity_map, disparity_map_left.depth());
} else {
filt_disp.copyTo(filtered_disparity_map);
}
}

Loading…
Cancel
Save