To create the image, a beam of X-rays is produced by an X-ray machine and is projected toward the object. A certain amount of X-ray is absorbed by the object, which is dependent on the density and composition of that object. The X-rays that pass through the object are captured behind the object by a detector (either photographic film or a digital detector). The detector gives a superimposed 2D representation of the object's internal structures. 