In some cases, the image for which quality should be determined is primarily not the result of a photographic process in a camera, but the result of storing or transmitting the image. A typical example is a digital image that has been compressed, stored or transmitted, and then decompressed again. Unless a lossless compression method has been used, the resulting image is normally not identical to the original image and the deviation from the (ideal) original image is then a measure of quality. By considering a large set of images, and determining a quality measure for each of them, statistical methods can be used to determine an overall quality measure of the compression method.