[−][src]Trait opencv::ximgproc::prelude::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.
Required methods
pub fn as_raw_DisparityWLSFilter(&self) -> *const c_void
[src]
pub fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void
[src]
Provided methods
pub fn get_lambda(&mut self) -> Result<f64>
[src]
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.
pub fn set_lambda(&mut self, _lambda: f64) -> Result<()>
[src]
See also
getLambda
pub fn get_sigma_color(&mut self) -> Result<f64>
[src]
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.
pub fn set_sigma_color(&mut self, _sigma_color: f64) -> Result<()>
[src]
See also
getSigmaColor
pub fn get_lr_cthresh(&mut self) -> Result<i32>
[src]
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.
pub fn set_lr_cthresh(&mut self, _lrc_thresh: i32) -> Result<()>
[src]
See also
getLRCthresh
pub fn get_depth_discontinuity_radius(&mut self) -> Result<i32>
[src]
DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.
pub fn set_depth_discontinuity_radius(
&mut self,
_disc_radius: i32
) -> Result<()>
[src]
&mut self,
_disc_radius: i32
) -> Result<()>
See also
getDepthDiscontinuityRadius
pub fn get_confidence_map(&mut self) -> Result<Mat>
[src]
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).
pub fn get_roi(&mut self) -> Result<Rect>
[src]
Get the ROI used in the last filter call