Struct dssim::Dssim
[−]
[src]
pub struct Dssim { /* fields omitted */ }
Object holding settings
Methods
impl Dssim
[src]
fn new() -> Dssim
fn set_scales(&mut self, scales: &[f64])
Weights of how important each resolution is
fn set_save_ssim_maps(&mut self, num_scales: u8, num_channels: u8)
Enable saving of per-pixel results for each channel/res
fn pop_ssim_map(
&mut self,
scale_index: u8,
channel_index: u8
) -> Option<SsimMap>
&mut self,
scale_index: u8,
channel_index: u8
) -> Option<SsimMap>
Read result of specific res/channel
fn new_image<'img, T>(
&mut self,
bitmap: &'img [T],
color_type: ColorType,
width: usize,
stride: usize,
gamma: f64
) -> Result<DssimImage<'img>, String>
&mut self,
bitmap: &'img [T],
color_type: ColorType,
width: usize,
stride: usize,
gamma: f64
) -> Result<DssimImage<'img>, String>
Describe pixel array
Stride is in bytes
0 gamma means sRGB