Table of Contents

Method Filter

Namespace
OpenCvSharp.XImgProc
Assembly
OpenCvSharp.dll

Filter(InputArray, InputArray, OutputArray, InputArray, Rect, InputArray)

Apply filtering to the disparity map.

public virtual void Filter(InputArray disparityMapLeft, InputArray leftView, OutputArray filteredDisparityMap, InputArray disparityMapRight = default, Rect roi = default, InputArray rightView = default)

Parameters

disparityMapLeft InputArray

disparity map of the left view, 1 channel, CV_16S 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 leftView resolution.

leftView InputArray

left view of the original stereo-pair to guide the filtering process, 8-bit single-channel or three-channel image.

filteredDisparityMap OutputArray

output disparity map, single-channel CV_16S type, with disparity values scaled by 16.

disparityMapRight InputArray

optional argument, some implementations might also use the disparity map of the right view to compute confidence maps. If provided, it must be a single-channel CV_16S matrix. Disparity values are expected to be scaled by 16 (one-pixel disparity corresponds to the value of 16).

roi Rect

region of the disparity map to filter. Optional, usually it should be set automatically.

rightView InputArray

optional argument, some implementations might also use the right view of the original stereo-pair.