This is an efficient implementation of the algorithm for calculating the universal image quality index