A CT scan takes detailed images of the body by combining x-rays taken from multiple angles. For a CT myelogram, a contrast dye is injected in the spine before the images are taken. The dye outlines the spine and spinal nerves to reveal tumors or spinal damage.