DriftCapture · function

structuralSimilarity

The mean structural similarity of a and b, one value a pixel, over every window.

Explained in DriftCapture.

function structuralSimilarity(a: ArrayLike<number>, b: ArrayLike<number>, width: number, height: number): number
import { structuralSimilarity } from '@driftengine/capture';

Parameters

ParameterTypeDescription
aArrayLike<number>
bArrayLike<number>
widthnumber
heightnumber

In depth

A picture narrower or shorter than a window is compared as one window rather than refused: it has a mean and a variance like any other, and the alternative is a measure that cannot answer for a thumbnail.