logo

Crate dssim

source · []
Expand description

See the dssim-core crate if you’d like to use only the library part.

Structs

Configuration for the comparison

Abstract wrapper for images. See Dssim::create_image()

L*a*b*b, but using float units (values are 100× smaller than in usual integer representation)

Detailed comparison result

Result of comparison as f64

Traits

Component-wise averaging of pixel values used by Downsample to support arbitrary pixel types

You can customize how images are downsampled

See GammaPixel & ToRGBAPLU

Downsampling should be done in linear RGB color space.

Convert image to L*a*b* planar

RGBA Premultiplied Linear-light Unit scale

Functions

Load PNG or JPEG image from the given path. Applies color profiles and converts to sRGB.

Create new context for a comparison

Type Definitions

RGBA, but: premultiplied alpha, linear (using sRGB primaries, but not its gamma curve), f32 unit scale 0..1

RGB, but: linear (using sRGB primaries, but not its gamma curve), f32 unit scale 0..1