Class DisparityFilter
- Namespace
- OpenCvSharp.XImgProc
- Assembly
- OpenCvSharp.dll
Main interface for all disparity map filters.
public abstract class DisparityFilter : Algorithm, IDisposable
- Inheritance
-
DisparityFilter
- Implements
- Derived
- Inherited Members
Constructors
DisparityFilter(nint, nint, Action<nint>)
Constructor for the factory pattern (cv::Ptr<T>* + raw T*).
protected DisparityFilter(nint smartPtr, nint rawPtr, Action<nint> release)
Parameters
Methods
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
disparityMapLeftInputArraydisparity 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.
leftViewInputArrayleft view of the original stereo-pair to guide the filtering process, 8-bit single-channel or three-channel image.
filteredDisparityMapOutputArrayoutput disparity map, single-channel CV_16S type, with disparity values scaled by 16.
disparityMapRightInputArrayoptional 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).
roiRectregion of the disparity map to filter. Optional, usually it should be set automatically.
rightViewInputArrayoptional argument, some implementations might also use the right view of the original stereo-pair.