pub trait CUDA_DenseOpticalFlow: AlgorithmTrait + CUDA_DenseOpticalFlowConst {
    fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void;

    fn calc(
        &mut self,
        i0: &dyn ToInputArray,
        i1: &dyn ToInputArray,
        flow: &mut dyn ToInputOutputArray,
        stream: &mut Stream
    ) -> Result<()> { ... } }

Required Methods

Provided Methods

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()

Implementors