Crate dssim [−] [src]
let mut d = dssim::new(); let img1 = d.new_image(file1.buffer.as_ref(), dssim::DSSIM_RGBA, file1.width, file1.width*4, 0.45455)?; let img2 = d.new_image(file2.buffer.as_ref(), dssim::DSSIM_RGBA, file2.width, file2.width*4, 0.45455)?; let res = d.compare(&img1, img2); assert!(res < 0.0160);
Structs
Dssim |
Object holding settings |
DssimImage |
Object holding pixels |
SsimMap |
Per-pixel results |
Val |
Float result of DSSIM |
Constants
DSSIM_SRGB_GAMMA |
Magic constant to use sRGB gamma curve |
Functions
new |
Type Definitions
ColorType |
|