Implementation of algorithm to find highest SSIM image within the L2 ball from Image Quality Assessment: From Error Visibility to Structural Similarity
In the original paper, the algorithm is written as:
The implementation here rewrites this as the equivalent
in order to reduce memory complexity from quadratic to linear