Struct opencv::ximgproc::DisparityWLSFilter
source · pub struct DisparityWLSFilter { /* private fields */ }
Expand description
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.
Trait Implementations§
source§impl AlgorithmTrait for DisparityWLSFilter
impl AlgorithmTrait for DisparityWLSFilter
source§impl AlgorithmTraitConst for DisparityWLSFilter
impl AlgorithmTraitConst for DisparityWLSFilter
fn as_raw_Algorithm(&self) -> *const c_void
source§fn write(&self, fs: &mut FileStorage) -> Result<()>
fn write(&self, fs: &mut FileStorage) -> Result<()>
Stores algorithm parameters in a file storage
source§fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
fn write_1(&self, fs: &mut FileStorage, name: &str) -> Result<()>
Stores algorithm parameters in a file storage Read more
source§fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
fn write_with_name(&self, fs: &Ptr<FileStorage>, name: &str) -> Result<()>
@deprecated Read more
source§fn empty(&self) -> Result<bool>
fn empty(&self) -> Result<bool>
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read
source§fn save(&self, filename: &str) -> Result<()>
fn save(&self, filename: &str) -> Result<()>
Saves the algorithm to a file.
In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).
source§fn get_default_name(&self) -> Result<String>
fn get_default_name(&self) -> Result<String>
Returns the algorithm string identifier.
This string is used as top level xml/yml node tag when the object is saved to a file or string.
source§impl Boxed for DisparityWLSFilter
impl Boxed for DisparityWLSFilter
source§impl DisparityFilterTrait for DisparityWLSFilter
impl DisparityFilterTrait for DisparityWLSFilter
fn as_raw_mut_DisparityFilter(&mut self) -> *mut c_void
source§fn filter(
&mut self,
disparity_map_left: &impl ToInputArray,
left_view: &impl ToInputArray,
filtered_disparity_map: &mut impl ToOutputArray,
disparity_map_right: &impl ToInputArray,
roi: Rect,
right_view: &impl ToInputArray
) -> Result<()>
fn filter( &mut self, disparity_map_left: &impl ToInputArray, left_view: &impl ToInputArray, filtered_disparity_map: &mut impl ToOutputArray, disparity_map_right: &impl ToInputArray, roi: Rect, right_view: &impl ToInputArray ) -> Result<()>
Apply filtering to the disparity map. Read more
source§impl DisparityFilterTraitConst for DisparityWLSFilter
impl DisparityFilterTraitConst for DisparityWLSFilter
fn as_raw_DisparityFilter(&self) -> *const c_void
source§impl DisparityWLSFilterTrait for DisparityWLSFilter
impl DisparityWLSFilterTrait for DisparityWLSFilter
fn as_raw_mut_DisparityWLSFilter(&mut self) -> *mut c_void
source§fn 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.
source§fn 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.
source§fn 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.
source§fn 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.
source§fn set_depth_discontinuity_radius(&mut self, _disc_radius: i32) -> Result<()>
fn set_depth_discontinuity_radius(&mut self, _disc_radius: i32) -> Result<()>
See also Read more
source§fn 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).
source§impl DisparityWLSFilterTraitConst for DisparityWLSFilter
impl DisparityWLSFilterTraitConst for DisparityWLSFilter
fn as_raw_DisparityWLSFilter(&self) -> *const c_void
source§impl Drop for DisparityWLSFilter
impl Drop for DisparityWLSFilter
source§impl From<DisparityWLSFilter> for Algorithm
impl From<DisparityWLSFilter> for Algorithm
source§fn from(s: DisparityWLSFilter) -> Self
fn from(s: DisparityWLSFilter) -> Self
Converts to this type from the input type.
impl Send for DisparityWLSFilter
Auto Trait Implementations§
impl RefUnwindSafe for DisparityWLSFilter
impl !Sync for DisparityWLSFilter
impl Unpin for DisparityWLSFilter
impl UnwindSafe for DisparityWLSFilter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more