pub struct BackgroundModelOptions {
pub learning_rate: f32,
pub sigma_threshold: f32,
pub initial_variance: f32,
}Expand description
Adaptive Gaussian background-model controls.
Fields§
§learning_rate: f32Exponential update factor in (0, 1].
sigma_threshold: f32Foreground threshold measured in standard deviations.
initial_variance: f32Initial per-pixel variance.
Trait Implementations§
Source§impl Clone for BackgroundModelOptions
impl Clone for BackgroundModelOptions
Source§fn clone(&self) -> BackgroundModelOptions
fn clone(&self) -> BackgroundModelOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BackgroundModelOptions
impl Debug for BackgroundModelOptions
Source§impl Default for BackgroundModelOptions
impl Default for BackgroundModelOptions
Source§impl PartialEq for BackgroundModelOptions
impl PartialEq for BackgroundModelOptions
Source§fn eq(&self, other: &BackgroundModelOptions) -> bool
fn eq(&self, other: &BackgroundModelOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackgroundModelOptions
impl StructuralPartialEq for BackgroundModelOptions
Auto Trait Implementations§
impl Freeze for BackgroundModelOptions
impl RefUnwindSafe for BackgroundModelOptions
impl Send for BackgroundModelOptions
impl Sync for BackgroundModelOptions
impl Unpin for BackgroundModelOptions
impl UnsafeUnpin for BackgroundModelOptions
impl UnwindSafe for BackgroundModelOptions
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