pub struct ImageStats {
pub width: u32,
pub height: u32,
pub min: u8,
pub max: u8,
pub mean: f64,
pub median: u8,
pub std_dev: f64,
}Expand description
Image statistics
Fields§
§width: u32Width in pixels
height: u32Height in pixels
min: u8Minimum value
max: u8Maximum value
mean: f64Mean value
median: u8Median value
std_dev: f64Standard deviation
Implementations§
Source§impl ImageStats
impl ImageStats
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 · 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 ImageStats
impl Debug for ImageStats
Source§impl<'de> Deserialize<'de> for ImageStats
impl<'de> Deserialize<'de> for ImageStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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