[][src]Trait opencv::calib3d::StereoMatcher

pub trait StereoMatcher: AlgorithmTrait {
    fn as_raw_StereoMatcher(&self) -> *mut c_void;

    fn compute(
        &mut self,
        left: &dyn ToInputArray,
        right: &dyn ToInputArray,
        disparity: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
fn get_min_disparity(&self) -> Result<i32> { ... }
fn set_min_disparity(&mut self, min_disparity: i32) -> Result<()> { ... }
fn get_num_disparities(&self) -> Result<i32> { ... }
fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()> { ... }
fn get_block_size(&self) -> Result<i32> { ... }
fn set_block_size(&mut self, block_size: i32) -> Result<()> { ... }
fn get_speckle_window_size(&self) -> Result<i32> { ... }
fn set_speckle_window_size(
        &mut self,
        speckle_window_size: i32
    ) -> Result<()> { ... }
fn get_speckle_range(&self) -> Result<i32> { ... }
fn set_speckle_range(&mut self, speckle_range: i32) -> Result<()> { ... }
fn get_disp12_max_diff(&self) -> Result<i32> { ... }
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

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

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.

fn get_min_disparity(&self) -> Result<i32>

fn set_min_disparity(&mut self, min_disparity: i32) -> Result<()>

fn get_num_disparities(&self) -> Result<i32>

fn set_num_disparities(&mut self, num_disparities: i32) -> Result<()>

fn get_block_size(&self) -> Result<i32>

fn set_block_size(&mut self, block_size: i32) -> Result<()>

fn get_speckle_window_size(&self) -> Result<i32>

fn set_speckle_window_size(&mut self, speckle_window_size: i32) -> Result<()>

fn get_speckle_range(&self) -> Result<i32>

fn set_speckle_range(&mut self, speckle_range: i32) -> Result<()>

fn get_disp12_max_diff(&self) -> Result<i32>

fn set_disp12_max_diff(&mut self, disp12_max_diff: i32) -> Result<()>

Loading content...

Implementors

impl StereoMatcher for PtrOfStereoBM[src]

impl StereoMatcher for PtrOfStereoSGBM[src]

Loading content...