Structural similarity Index (for 2D data)

- Luminance - by considering average value
- Contrast - by considering variance value
- Structure - by considering correlation value
Loss Function
Structural similarity
The structural similarity index measure (SSIM) is a 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. The SSIM index is a full reference metric; in other words, the measurement or prediction of image quality is based on an initial uncompressed or distortion-free image as reference.
https://en.wikipedia.org/wiki/Structural_similarity

Seonglae Cho