DisparityWLSFilter

Objective-C

@interface DisparityWLSFilter : DisparityFilter

Swift

class DisparityWLSFilter : DisparityFilter

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.

Member of Ximgproc

Methods

  • Get the confidence map that was used in the last filter call. It is a CV_32F one-channel image with values ranging from 0.0 (totally untrusted regions of the raw disparity map) to 255.0 (regions containing correct disparity values with a high degree of confidence).

    Declaration

    Objective-C

    - (nonnull Mat *)getConfidenceMap;

    Swift

    func getConfidenceMap() -> Mat
  • Get the ROI used in the last filter call

    Declaration

    Objective-C

    - (nonnull Rect2i *)getROI;

    Swift

    func getROI() -> Rect2i
  • Lambda is a parameter defining the amount of regularization during filtering. Larger values force filtered disparity map edges to adhere more to source image edges. Typical value is 8000.

    Declaration

    Objective-C

    - (double)getLambda;

    Swift

    func getLambda() -> Double
  • SigmaColor is a parameter defining how sensitive the filtering process is to source image edges. Large values can lead to disparity leakage through low-contrast edges. Small values can make the filter too sensitive to noise and textures in the source image. Typical values range from 0.8 to 2.0.

    Declaration

    Objective-C

    - (double)getSigmaColor;

    Swift

    func getSigmaColor() -> Double
  • DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.

    Declaration

    Objective-C

    - (int)getDepthDiscontinuityRadius;

    Swift

    func getDepthDiscontinuityRadius() -> Int32
  • LRCthresh is a threshold of disparity difference used in left-right-consistency check during confidence map computation. The default value of 24 (1.5 pixels) is virtually always good enough.

    Declaration

    Objective-C

    - (int)getLRCthresh;

    Swift

    func getLRCthresh() -> Int32
  • See

    -getDepthDiscontinuityRadius:

    Declaration

    Objective-C

    - (void)setDepthDiscontinuityRadius:(int)_disc_radius;

    Swift

    func setDepthDiscontinuityRadius(_disc_radius: Int32)
  • See

    -getLRCthresh:

    Declaration

    Objective-C

    - (void)setLRCthresh:(int)_LRC_thresh;

    Swift

    func setLRCthresh(_LRC_thresh: Int32)
  • See

    -getLambda:

    Declaration

    Objective-C

    - (void)setLambda:(double)_lambda;

    Swift

    func setLambda(_lambda: Double)
  • See

    -getSigmaColor:

    Declaration

    Objective-C

    - (void)setSigmaColor:(double)_sigma_color;

    Swift

    func setSigmaColor(_sigma_color: Double)