pub trait DisparityWLSFilterTrait: DisparityFilterTrait + DisparityWLSFilterTraitConst {
// Required method
fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void;
// Provided methods
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> { ... }
}
Expand description
Mutable methods for crate::ximgproc::DisparityWLSFilter
Required Methods§
fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void
Provided Methods§
Sourcefn get_lambda(&mut self) -> Result<f64>
fn get_lambda(&mut self) -> Result<f64>
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.
Sourcefn get_sigma_color(&mut self) -> Result<f64>
fn get_sigma_color(&mut self) -> Result<f64>
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.
Sourcefn get_lr_cthresh(&mut self) -> Result<i32>
fn get_lr_cthresh(&mut self) -> Result<i32>
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.
Sourcefn get_depth_discontinuity_radius(&mut self) -> Result<i32>
fn get_depth_discontinuity_radius(&mut self) -> Result<i32>
DepthDiscontinuityRadius is a parameter used in confidence computation. It defines the size of low-confidence regions around depth discontinuities.
Sourcefn set_depth_discontinuity_radius(&mut self, _disc_radius: i32) -> Result<()>
fn set_depth_discontinuity_radius(&mut self, _disc_radius: i32) -> Result<()>
§See also
getDepthDiscontinuityRadius
Sourcefn get_confidence_map(&mut self) -> Result<Mat>
fn get_confidence_map(&mut self) -> Result<Mat>
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).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.