SSIM, the Structural Similarity Index, is a full-reference metric that asks whether the structure of a picture survived rather than how many pixel values changed. It slides a small window across each frame and at every position compares the original and distorted patches on three things the eye cares about — luminance (mean brightness), contrast (variance), and structure (the correlation of patterns via covariance) — then multiplies the three into one score between 0 and 1, where 1 means identical. Averaging the per-window map gives the Mean SSIM that tools report. Because human vision reads structure, SSIM tracks perceived quality better than PSNR, reacting to blur, blocking, and ringing while forgiving harmless brightness shifts. Its catches: there is no single SSIM (windows and constants differ between implementations, so compare only same tool and settings), it is usually luma-only, per-frame, and saturates near 1. MS-SSIM and VMAF extend or surpass it.


The handbook · 7 volumes
Fora Soft Video Engineering Handbook
SSIM tracks structure rather than raw pixel error, so it often agrees with viewers where PSNR does not, though it has blind spots of its own. Of our seven handbook volumes on the video stack, Volume 1 is the place to start for SSIM, covering full-reference metrics, PSNR versus SSIM versus VMAF, and how codecs trade structure for bits. Written by Nikolay Sapunov, CEO at Fora Soft.
Deciding whether SSIM, PSNR or VMAF should judge your encodes?
We will compare SSIM, PSNR and VMAF on your content and recommend which metric to use for each decision. 250+ video products shipped since 2005.