pub enum TransferFunctionParams {
Sampled {
samples: Vec<f64>,
size: Vec<u32>,
bits_per_sample: u32,
},
Exponential {
c0: Vec<f64>,
c1: Vec<f64>,
n: f64,
},
Stitching {
functions: Vec<TransferFunctionData>,
bounds: Vec<f64>,
encode: Vec<f64>,
},
PostScript {
code: String,
},
}Expand description
Parameters for different transfer function types
Variants§
Sampled
Type 0: Sampled function
Fields
Exponential
Type 2: Exponential interpolation
Stitching
Type 3: Stitching function
Fields
§
functions: Vec<TransferFunctionData>Functions to stitch together
PostScript
Type 4: PostScript calculator function
Trait Implementations§
Source§impl Clone for TransferFunctionParams
impl Clone for TransferFunctionParams
Source§fn clone(&self) -> TransferFunctionParams
fn clone(&self) -> TransferFunctionParams
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 TransferFunctionParams
impl Debug for TransferFunctionParams
Source§impl PartialEq for TransferFunctionParams
impl PartialEq for TransferFunctionParams
impl StructuralPartialEq for TransferFunctionParams
Auto Trait Implementations§
impl Freeze for TransferFunctionParams
impl RefUnwindSafe for TransferFunctionParams
impl Send for TransferFunctionParams
impl Sync for TransferFunctionParams
impl Unpin for TransferFunctionParams
impl UnwindSafe for TransferFunctionParams
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