pub trait DisparityWLSFilter: DisparityFilter + DisparityWLSFilterConst {
    fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void;

    fn get_lambda(&mut self) -> Result<f64> { ... }
    fn set_lambda(&mut self, _lambda: f64) -> Result<()> { ... }
    fn get_sigma_color(&mut self) -> Result<f64> { ... }
    fn set_sigma_color(&mut self, _sigma_color: f64) -> Result<()> { ... }
    fn get_lr_cthresh(&mut self) -> Result<i32> { ... }
    fn set_lr_cthresh(&mut self, _lrc_thresh: i32) -> Result<()> { ... }
    fn get_depth_discontinuity_radius(&mut self) -> Result<i32> { ... }
    fn set_depth_discontinuity_radius(&mut self, _disc_radius: i32) -> Result<()> { ... }
    fn get_confidence_map(&mut self) -> Result<Mat> { ... }
    fn get_roi(&mut self) -> Result<Rect> { ... }
}

Required Methods§

Provided Methods§

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.

See also

getLambda

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.

See also

getSigmaColor

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.

See also

getLRCthresh

DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.

See also

getDepthDiscontinuityRadius

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).

Get the ROI used in the last filter call

Implementors§