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
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 impl StreamTrait,
) -> Result<()>
fn compute_with_stream( &mut self, left: &impl ToInputArray, right: &impl ToInputArray, disparity: &mut impl ToOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
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.