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): numberimport { structuralSimilarity } from '@driftengine/capture';Parameters
| Parameter | Type | Description |
|---|---|---|
a | ArrayLike<number> | |
b | ArrayLike<number> | |
width | number | |
height | number |
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.