pub struct ImageStats {
pub mean: f64,
pub variance: f64,
}Expand description
What the gate measured on an image, over its luma plane with each pixel
normalised to 0.0…1.0.
Fields§
§mean: f64Mean luma. Recorded for legibility; the gate does not compare it — a black image and a white image are equally empty.
variance: f64Variance of the luma plane — the value the gate compares.
Trait Implementations§
Source§impl Clone for ImageStats
impl Clone for ImageStats
Source§fn clone(&self) -> ImageStats
fn clone(&self) -> ImageStats
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 moreimpl Copy for ImageStats
Source§impl Debug for ImageStats
impl Debug for ImageStats
Source§impl PartialEq for ImageStats
impl PartialEq for ImageStats
impl StructuralPartialEq for ImageStats
Auto Trait Implementations§
impl Freeze for ImageStats
impl RefUnwindSafe for ImageStats
impl Send for ImageStats
impl Sync for ImageStats
impl Unpin for ImageStats
impl UnsafeUnpin for ImageStats
impl UnwindSafe for ImageStats
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