A Study of the Structural Similarity Image Quality Measure with Applications to Image Processing