[−][src]Trait opencv::hub_prelude::StereoMatcher
The base class for stereo correspondence algorithms.
Required methods
pub fn as_raw_StereoMatcher(&self) -> *const c_void
[src]
pub fn as_raw_mut_StereoMatcher(&mut self) -> *mut c_void
[src]
Provided methods
pub fn compute(
&mut self,
left: &dyn ToInputArray,
right: &dyn ToInputArray,
disparity: &mut dyn ToOutputArray
) -> Result<()>
[src]
&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.
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]
&mut self,
speckle_window_size: i32
) -> Result<()>