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