[][src]Trait opencv::video::prelude::DenseOpticalFlow

pub trait DenseOpticalFlow: AlgorithmTrait {
    pub fn as_raw_DenseOpticalFlow(&self) -> *const c_void;
pub fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void; pub fn calc(
        &mut self,
        i0: &dyn ToInputArray,
        i1: &dyn ToInputArray,
        flow: &mut dyn ToInputOutputArray
    ) -> Result<()> { ... }
pub fn collect_garbage(&mut self) -> Result<()> { ... } }

Base class for dense optical flow algorithms

Required methods

Loading content...

Provided methods

pub fn calc(
    &mut self,
    i0: &dyn ToInputArray,
    i1: &dyn ToInputArray,
    flow: &mut dyn ToInputOutputArray
) -> Result<()>
[src]

Calculates an optical flow.

Parameters

  • I0: first 8-bit single-channel input image.
  • I1: second input image of the same size and the same type as prev.
  • flow: computed flow image that has the same size as prev and type CV_32FC2.

pub fn collect_garbage(&mut self) -> Result<()>[src]

Releases all inner buffers.

Loading content...

Implementors

Loading content...