DenseOpticalFlowTrait

Trait DenseOpticalFlowTrait 

Source
pub trait DenseOpticalFlowTrait: AlgorithmTrait + DenseOpticalFlowTraitConst {
    // Required method
    fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void;

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

Mutable methods for crate::video::DenseOpticalFlow

Required Methods§

Provided Methods§

Source

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

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.
Source

fn collect_garbage(&mut self) -> Result<()>

Releases all inner buffers.

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§