Trait CUDA_DenseOpticalFlowTrait

Source
pub trait CUDA_DenseOpticalFlowTrait: AlgorithmTrait + CUDA_DenseOpticalFlowTraitConst {
    // Required method
    fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void;

    // Provided methods
    fn calc(
        &mut self,
        i0: &impl ToInputArray,
        i1: &impl ToInputArray,
        flow: &mut impl ToInputOutputArray,
        stream: &mut impl StreamTrait,
    ) -> Result<()> { ... }
    fn calc_def(
        &mut self,
        i0: &impl ToInputArray,
        i1: &impl ToInputArray,
        flow: &mut impl ToInputOutputArray,
    ) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn calc( &mut self, i0: &impl ToInputArray, i1: &impl ToInputArray, flow: &mut impl ToInputOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>

Calculates a dense optical flow.

§Parameters
  • I0: first input image.
  • I1: second input image of the same size and the same type as I0.
  • flow: computed flow image that has the same size as I0 and type CV_32FC2.
  • stream: Stream for the asynchronous version.
§C++ default parameters
  • stream: Stream::Null()
Source

fn calc_def( &mut self, i0: &impl ToInputArray, i1: &impl ToInputArray, flow: &mut impl ToInputOutputArray, ) -> Result<()>

Calculates a dense optical flow.

§Parameters
  • I0: first input image.
  • I1: second input image of the same size and the same type as I0.
  • flow: computed flow image that has the same size as I0 and type CV_32FC2.
  • stream: Stream for the asynchronous version.
§Note

This alternative version of CUDA_DenseOpticalFlowTrait::calc function uses the following default values for its arguments:

  • stream: Stream::Null()

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§