pub trait CUDA_StereoSGMTrait: StereoSGBMTrait + CUDA_StereoSGMTraitConst {
    // Required method
    fn as_raw_mut_CUDA_StereoSGM(&mut self) -> *mut c_void;

    // Provided methods
    fn compute(
        &mut self,
        left: &impl ToInputArray,
        right: &impl ToInputArray,
        disparity: &mut impl ToOutputArray
    ) -> Result<()> { ... }
    fn compute_with_stream(
        &mut self,
        left: &impl ToInputArray,
        right: &impl ToInputArray,
        disparity: &mut impl ToOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

source

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

Computes disparity map for the specified stereo pair

Parameters
  • left: Left 8-bit or 16-bit unsigned 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. StereoSGM computes 16-bit fixed-point disparity map (where each disparity value has 4 fractional bits).
source

fn compute_with_stream( &mut self, left: &impl ToInputArray, right: &impl ToInputArray, disparity: &mut impl ToOutputArray, stream: &mut Stream ) -> Result<()>

Computes disparity map with specified CUDA Stream

See also

compute

Object Safety§

This trait is not object safe.

Implementors§