Computed tomography (CT) uses a sophisticated machine to take x-rays from many different views, producing detailed two-dimensional images that can be combined by a computer to form three-dimensional images of virtually any body part including the heart, abdomen and brain.