pub struct SsimOptions {
pub window_size: usize,
pub k1: f64,
pub k2: f64,
pub bit_depth: u32,
}Expand description
Knobs shared by every SSIM variant.
Fields§
§window_size: usizeSide of the local window. Default 11, as in every reference.
k1: f64Luminance stability constant: c1 = (k1·L)². Default 0.01.
k2: f64Contrast stability constant: c2 = (k2·L)². Default 0.03.
bit_depth: u32Sample bit depth, which sets the dynamic range L = 2^bit_depth - 1.
Default 8.
Implementations§
Source§impl SsimOptions
impl SsimOptions
Sourcepub fn dynamic_range(&self) -> f64
pub fn dynamic_range(&self) -> f64
L, the dynamic range the stability constants are scaled by.
Trait Implementations§
Source§impl Clone for SsimOptions
impl Clone for SsimOptions
impl Copy for SsimOptions
Source§impl Debug for SsimOptions
impl Debug for SsimOptions
Source§impl Default for SsimOptions
impl Default for SsimOptions
Source§impl PartialEq for SsimOptions
impl PartialEq for SsimOptions
impl StructuralPartialEq for SsimOptions
Auto Trait Implementations§
impl Freeze for SsimOptions
impl RefUnwindSafe for SsimOptions
impl Send for SsimOptions
impl Sync for SsimOptions
impl Unpin for SsimOptions
impl UnsafeUnpin for SsimOptions
impl UnwindSafe for SsimOptions
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