SSIM is a method of determining similarity between two images, based upon luminance, contrast and structural similarity.
The images are subdivided into regions which are compared against each other. We can take a weighted product of the three comparison components, such that;
Luminance
Local luminance is measured by the mean intensity () of a region.
As such, this is given by the ratio:
Contrast
Contrast is modelled by the standard deviation of the intensity of a region.
As a high contrast causes a wider spread of the mean pixel intensity, we can use:
Structure
The structure of an image can be modelled using Pearson’s r: