pub struct Histogram {
pub count: u64,
pub min: f64,
pub max: f64,
pub buckets: Vec<u64>,
}
Expand description
The distribution of pixel values of a band can be provided with a histogram object.
Those values are sampled in buckets. A histogram object is atomic and all fields are REQUIRED.
Fields§
§count: u64
Number of buckets of the distribution.
min: f64
Minimum value of the distribution. Also the mean value of the first bucket.
max: f64
Maximum value of the distribution. Also the mean value of the last bucket.
buckets: Vec<u64>
Array of integer indicating the number of pixels included in the bucket.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Histogram
impl<'de> Deserialize<'de> for Histogram
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 Histogram
impl RefUnwindSafe for Histogram
impl Send for Histogram
impl Sync for Histogram
impl Unpin for Histogram
impl UnwindSafe for Histogram
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