Apply filtering to the disparity map
filtered_disparity_map = obj.filter(disparity_map_left, disparity_map_right, left_view)
filtered_disparity_map = obj.filter(..., 'OptionName',optionValue, ...)
Input
- disparity_map_left disparity map of the left view,
1 channel
int16
type. Implicitly assumes that disparity
values are scaled by 16 (one-pixel disparity corresponds
to the value of 16 in the disparity map). Disparity map
can have any resolution, it will be automatically resized
to fit left_view
resolution.
- disparity_map_right optional argument, some
implementations might also use the disparity map of the
right view to compute confidence maps, for instance.
Pass an empty matrix
[]
if not used.
- left_view left view of the original stereo-pair to guide
the filtering process, 8-bit single-channel or
three-channel image.
Output
- filtered_disparity_map output disparity map.
Options
- ROI region of the disparity map to filter. Optional,
usually it should be set automatically. Not set by
default.
- RightView optional argument, some implementations might
also use the right view of the original stereo-pair. Not
set by default.