Trait CUDA_StereoSGMTrait

Source
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 impl StreamTrait,
    ) -> 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 impl StreamTrait, ) -> Result<()>

Computes disparity map with specified CUDA Stream

§See also

compute

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§