Class DisparityWLSFilter
Disparity map filter based on Weighted Least Squares filter (in form of Fast Global Smoother that is a lot faster than traditional Weighted Least Squares filter implementations) and optional use of left-right-consistency-based confidence to refine the results in half-occlusions and uniform areas.
public class DisparityWLSFilter : SharedPtrObject, IDisposable, IAlgorithm, IDisparityFilter
- Inheritance
-
DisparityWLSFilter
- Implements
- Inherited Members
- Extension Methods
Constructors
DisparityWLSFilter(IStereoMatcher)
Creates an instance of DisparityWLSFilter and sets up all the relevant filter parameters automatically based on the matcher instance. Currently supports only StereoBM and StereoSGBM.
public DisparityWLSFilter(IStereoMatcher matcherLeft)
Parameters
matcherLeft
IStereoMatcherstereo matcher instance that will be used with the filter
DisparityWLSFilter(bool)
Create instance of DisparityWLSFilter and execute basic initialization routines. When using this method you will need to set-up the ROI, matchers and other parameters by yourself.
public DisparityWLSFilter(bool useConfidence)
Parameters
useConfidence
boolFiltering with confidence requires two disparity maps (for the left and right views) and is approximately two times slower. However, quality is typically significantly better.
Properties
AlgorithmPtr
Pointer to cv::Algorithm
public nint AlgorithmPtr { get; }
Property Value
DisparityFilterPtr
Pointer to the native DisparityFilter
public nint DisparityFilterPtr { get; }
Property Value
Methods
DisposeObject()
Release the unmanaged memory associated with this DisparityWLSFilter
protected override void DisposeObject()