pub struct BlockMotionDetection {
pub min_size: f32,
pub subdivide: usize,
pub target_motion: f32,
}Expand description
Block subdivision based motion detector.
This detector splits up each frame to blocks that are of area min_size / (subdivide ^ 2) and
checks average motion within each block to be at least of target_motion magnitude.
Fields§
§min_size: f32§subdivide: usize§target_motion: f32Trait Implementations§
Source§impl Default for BlockMotionDetection
impl Default for BlockMotionDetection
Source§impl Detector for BlockMotionDetection
impl Detector for BlockMotionDetection
Source§fn detect_motion(&self, motion: &[MotionEntry]) -> Option<(usize, MotionField)>
fn detect_motion(&self, motion: &[MotionEntry]) -> Option<(usize, MotionField)>
Detect motion. Read more
Auto Trait Implementations§
impl Freeze for BlockMotionDetection
impl RefUnwindSafe for BlockMotionDetection
impl Send for BlockMotionDetection
impl Sync for BlockMotionDetection
impl Unpin for BlockMotionDetection
impl UnwindSafe for BlockMotionDetection
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.