Trait opencv::hub_prelude::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 Stream
) -> Result<()> { ... }
}Expand description
Mutable methods for crate::cudastereo::CUDA_StereoSGM
Required Methods§
fn as_raw_mut_CUDA_StereoSGM(&mut self) -> *mut c_void
Provided Methods§
sourcefn compute(
&mut self,
left: &impl ToInputArray,
right: &impl ToInputArray,
disparity: &mut impl ToOutputArray
) -> Result<()>
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).
sourcefn compute_with_stream(
&mut self,
left: &impl ToInputArray,
right: &impl ToInputArray,
disparity: &mut impl ToOutputArray,
stream: &mut Stream
) -> Result<()>
fn compute_with_stream( &mut self, left: &impl ToInputArray, right: &impl ToInputArray, disparity: &mut impl ToOutputArray, stream: &mut Stream ) -> Result<()>
Object Safety§
This trait is not object safe.