[][src]Trait opencv::hub_prelude::StereoMatcher

pub trait StereoMatcher: AlgorithmTrait {
    pub fn as_raw_StereoMatcher(&self) -> *const c_void;
pub fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void; pub fn compute(
        &mut self,
        left: &dyn ToInputArray,
        right: &dyn ToInputArray,
        disparity: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
pub fn get_min_disparity(&self) -> Result<i32> { ... }
pub fn set_min_disparity(&mut self, min_disparity: i32) -> Result<()> { ... }
pub fn get_num_disparities(&self) -> Result<i32> { ... }
pub fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()> { ... }
pub fn get_block_size(&self) -> Result<i32> { ... }
pub fn set_block_size(&mut self, block_size: i32) -> Result<()> { ... }
pub fn get_speckle_window_size(&self) -> Result<i32> { ... }
pub fn set_speckle_window_size(
        &mut self,
        speckle_window_size: i32
    ) -> Result<()> { ... }
pub fn get_speckle_range(&self) -> Result<i32> { ... }
pub fn set_speckle_range(&mut self, speckle_range: i32) -> Result<()> { ... }
pub fn get_disp12_max_diff(&self) -> Result<i32> { ... }
pub fn set_disp12_max_diff(&mut self, disp12_max_diff: i32) -> Result<()> { ... } }

The base class for stereo correspondence algorithms.

Required methods

Loading content...

Provided methods

pub fn compute(
    &mut self,
    left: &dyn ToInputArray,
    right: &dyn ToInputArray,
    disparity: &mut dyn ToOutputArray
) -> Result<()>
[src]

Computes disparity map for the specified stereo pair

Parameters

  • left: Left 8-bit single-channel image.
  • right: Right image of the same size and the same type as the left one.
  • disparity: Output disparity map. It has the same size as the input images. Some algorithms, like StereoBM or StereoSGBM compute 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits), whereas other algorithms output 32-bit floating-point disparity map.

pub fn get_min_disparity(&self) -> Result<i32>[src]

pub fn set_min_disparity(&mut self, min_disparity: i32) -> Result<()>[src]

pub fn get_num_disparities(&self) -> Result<i32>[src]

pub fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()>[src]

pub fn get_block_size(&self) -> Result<i32>[src]

pub fn set_block_size(&mut self, block_size: i32) -> Result<()>[src]

pub fn get_speckle_window_size(&self) -> Result<i32>[src]

pub fn set_speckle_window_size(
    &mut self,
    speckle_window_size: i32
) -> Result<()>
[src]

pub fn get_speckle_range(&self) -> Result<i32>[src]

pub fn set_speckle_range(&mut self, speckle_range: i32) -> Result<()>[src]

pub fn get_disp12_max_diff(&self) -> Result<i32>[src]

pub fn set_disp12_max_diff(&mut self, disp12_max_diff: i32) -> Result<()>[src]

Loading content...

Implementors

Loading content...