Skip to main content

Module dssim

Module dssim 

Source
Expand description

DSSIM (Structural Dissimilarity) metric calculation.

Wraps the dssim-core crate for perceptual image comparison.

§ICC Profile Support

Use calculate_dssim_icc for images with non-sRGB color profiles.

Functions§

calculate_dssim
Calculate DSSIM between two images.
calculate_dssim_icc
Calculate DSSIM with ICC profile support.
rgb8_to_dssim_image
Convert RGB8 image data to the format needed for DSSIM calculation.
rgba8_to_dssim_image
Convert RGBA8 image data to the format needed for DSSIM calculation.