An image is formed on the image plane of the camera and then measured electronically or chemically to produce the photograph. The image formation process may be described by the ideal pinhole camera model, where only light rays from the depicted scene that pass through the camera aperture can fall on the image plane.[a] In reality, this ideal model is only an approximation of the image formation process, and image quality may be described in terms of how well the camera approximates the pinhole model.[1]
An ideal model of how a camera measures light is that the resulting photograph should represent the amount of light that falls on each point at a certain point in time. This model is only an approximate description of the light measurement process of a camera, and image quality is also related to the deviation from this model.
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.
In a typical digital camera, the resulting image quality depends on all three factors mentioned above: how much the image formation process of the camera deviates from the pinhole model, the quality of the image measurement process, and the coding artifacts that are introduced in the image produced by the camera, typically by the JPEG coding method.