pub struct PixelStats {
pub mean: f64,
pub stddev: f64,
pub channel_stddev: [f64; 3],
pub range: [u8; 3],
}Expand description
Statistics of an RGB24 buffer.
Fields§
§mean: f64Mean of every byte.
stddev: f64Largest per-channel population standard deviation: spatial variation, so a flat colour scores 0 whatever its hue.
channel_stddev: [f64; 3]Per-channel standard deviation (R, G, B).
range: [u8; 3]Per-channel max - min.
Trait Implementations§
Source§impl Clone for PixelStats
impl Clone for PixelStats
impl Copy for PixelStats
Source§impl Debug for PixelStats
impl Debug for PixelStats
Source§impl PartialEq for PixelStats
impl PartialEq for PixelStats
Source§impl Serialize for PixelStats
impl Serialize for PixelStats
impl StructuralPartialEq for PixelStats
Auto Trait Implementations§
impl Freeze for PixelStats
impl RefUnwindSafe for PixelStats
impl Send for PixelStats
impl Sync for PixelStats
impl Unpin for PixelStats
impl UnsafeUnpin for PixelStats
impl UnwindSafe for PixelStats
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