pub enum Quantization {
Linear {
offset: f64,
scale: f64,
minimum_code: f64,
maximum_code: f64,
nodata_code: f64,
},
Log1p {
trace: f64,
scale: f64,
maximum: f64,
minimum_code: f64,
maximum_code: f64,
zero_code: f64,
overflow_code: f64,
nodata_code: f64,
},
}Expand description
A codebook: how a stored code maps back to a physical value
(docs/bundle.md, “Codebooks”). Its code keys are integers up to 65535;
which of them fit is the width of the array or container that holds them.
Variants§
Implementations§
Source§impl Quantization
impl Quantization
Trait Implementations§
Source§impl Clone for Quantization
impl Clone for Quantization
impl Copy for Quantization
Source§impl Debug for Quantization
impl Debug for Quantization
Source§impl PartialEq for Quantization
impl PartialEq for Quantization
impl StructuralPartialEq for Quantization
Auto Trait Implementations§
impl Forget for Quantization
impl Freeze for Quantization
impl Move for Quantization
impl RefUnwindSafe for Quantization
impl Send for Quantization
impl Sync for Quantization
impl Unpin for Quantization
impl UnsafeUnpin for Quantization
impl UnwindSafe for Quantization
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more