Structural Similarity Index method for predicting the perceived quality of digital television and cinematic pictures, as well as other kinds of digital images and videos. SSIM is used for measuring the similarity between two images SSIM(x,y)=(μx2+μy2+c1)(σx2+σy2+c2)(2μxμy+c1)(2σxy+c2) μx the pixel sample mean of x; μy the pixel sample mean of y; σx2 the variance of x; σy2 the variance of y; σxy the Covariance of x and y; c1=(k1L)2, c2=(k2L)2 two variables to stabilize the division with weak denominator; L the dynamic range of the pixel-values (typically this is 2#bits per pixel−1); k1=0.01 and k2=0.03 by default.