pub struct FarnebackConfig {
pub pyr_scale: f32,
pub levels: usize,
pub win_size: usize,
pub iterations: usize,
pub poly_n: usize,
pub poly_sigma: f32,
}Expand description
Configuration for Farneback dense optical flow. Configuration for Farneback dense optical flow.
Fields§
§pyr_scale: f32Pyramid scale (< 1.0, default 0.5).
levels: usizeNumber of pyramid levels (default 3).
win_size: usizeAveraging window size (default 15).
iterations: usizeNumber of iterations at each level (default 3).
poly_n: usizePolynomial expansion neighborhood size (default 5, must be 5 or 7).
poly_sigma: f32Gaussian std for polynomial expansion (default 1.1 for poly_n=5).
Trait Implementations§
Source§impl Clone for FarnebackConfig
impl Clone for FarnebackConfig
Source§fn clone(&self) -> FarnebackConfig
fn clone(&self) -> FarnebackConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FarnebackConfig
impl Debug for FarnebackConfig
Auto Trait Implementations§
impl Freeze for FarnebackConfig
impl RefUnwindSafe for FarnebackConfig
impl Send for FarnebackConfig
impl Sync for FarnebackConfig
impl Unpin for FarnebackConfig
impl UnsafeUnpin for FarnebackConfig
impl UnwindSafe for FarnebackConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more