Trait opencv::prelude::DenseOpticalFlow
source · pub trait DenseOpticalFlow: AlgorithmTrait + DenseOpticalFlowConst {
// Required method
fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void;
// Provided methods
fn calc(
&mut self,
i0: &dyn ToInputArray,
i1: &dyn ToInputArray,
flow: &mut dyn ToInputOutputArray
) -> Result<()> { ... }
fn collect_garbage(&mut self) -> Result<()> { ... }
}Expand description
Base class for dense optical flow algorithms
Required Methods§
fn as_raw_mut_DenseOpticalFlow(&mut self) -> *mut c_void
Provided Methods§
sourcefn calc(
&mut self,
i0: &dyn ToInputArray,
i1: &dyn ToInputArray,
flow: &mut dyn ToInputOutputArray
) -> Result<()>
fn calc( &mut self, i0: &dyn ToInputArray, i1: &dyn ToInputArray, flow: &mut dyn 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.
sourcefn collect_garbage(&mut self) -> Result<()>
fn collect_garbage(&mut self) -> Result<()>
Releases all inner buffers.