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
Mutable methods for crate::cudaoptflow::CUDA_DenseOpticalFlow
Required Methods§
fn as_raw_mut_CUDA_DenseOpticalFlow(&mut self) -> *mut c_void
Provided Methods§
Sourcefn calc(
&mut self,
i0: &impl ToInputArray,
i1: &impl ToInputArray,
flow: &mut impl ToInputOutputArray,
stream: &mut impl StreamTrait,
) -> Result<()>
fn calc( &mut self, i0: &impl ToInputArray, i1: &impl ToInputArray, flow: &mut impl ToInputOutputArray, stream: &mut impl StreamTrait, ) -> Result<()>
Sourcefn calc_def(
&mut self,
i0: &impl ToInputArray,
i1: &impl ToInputArray,
flow: &mut impl ToInputOutputArray,
) -> Result<()>
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.