A CT scanner turns a thin beam around the body and measures the attenuation along many lines. A computer then finds the value of each small block, called a voxel, of a slice. MRI uses no X-rays: hydrogen nuclei in a strong field resonate at f=42.58MHz/T×B and send back a radio signal.
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Beyond the shadow
A plain X-ray squashes the whole body into one flat shadow. A rib in front hides a lung behind it. How could we see one thin slice on its own? Two machines do it in very different ways: CT with X-rays, and MRI with magnetic fields and radio waves.
Computed tomography (CT)
Two linked pictures. On the left, a patient lies in a ring. An X-ray tube on the ring sends a thin fan of X-rays through one slice of the body to a curved row of detectors on the other side, and the tube and the detectors turn together around the patient. On the right, the slice is shown as a grid of four squares labelled A and B in the top row and C and D in the bottom row, with arrows that show four beam paths: along each row, down the left column, and along the diagonal from A to D. A note says the right column is used as a check.
In a CT scanner an X-ray tube sends a thin fan of X-rays through one slice of the body to a row of detectors. The tube and the detectors turn together around the patient. At each angle, each detector measures the total attenuation along its line. A computer then works out how much each small part of the slice absorbs.
The slice is divided into small squares called pixels. Each one has a thickness, so it is really a small block called a voxel.
The computer finds the attenuation of each voxel from the many line readings. This is reconstruction.
Slice after slice, the scanner builds a three-dimensional picture.
Worked example: four voxels
Here is the idea with four voxels, A and B on top, C and D below. Each reading is the sum of the voxels along its line: A+B=7, C+D=11, A+C=8 and, along the diagonal, A+D=12, in the same arbitrary units.
Write all in terms of A.B=7−A, C=8−A and D=12−A.
Use the bottom row.C+D=20−2A=11, so A=4.5.
The rest.B=2.5, C=3.5 and D=7.5.
Check with a reading we did not use. The right column gives B+D=10. A real scanner takes the reading and finds 10, so the values fit.
A real slice has hundreds of thousands of voxels and needs many thousands of readings, which is why CT needed fast computers.
The CT number
Scanners report each voxel as a CT number, in Hounsfield units (HU):
CT=μw1000(μ−μw)
Here μw is the coefficient of water. So water is 0 HU and air is about −1000 HU. Fat is a little below zero, soft tissue a little above, and dense bone near +1000 HU or more.
A CT scan shows soft tissues far better than a plain X-ray. It also gives a much larger dose, a few millisievert against about 0.02 millisievert for an X-ray of the chest. We return to dose in the next course.
MRI in outline
Magnetic resonance imaging uses the nuclei of hydrogen, which are single protons. The body is mostly water and fat, so it is full of them.
Tiny magnets. Each proton spins and acts as a tiny magnet. In a strong steady field B a small excess of them lines up with the field. They do not sit still: they precess about the field, like a tilted spinning top.
The Larmor frequency. The rate of precession is proportional to the field: f=42.58MHz/T×B for hydrogen. A scanner of 1.5 T gives 63.9 MHz, a radio frequency.
Resonance. A pulse of radio waves at exactly this frequency tips the protons away from the field.
Relaxation. After the pulse the protons return to line, and as they do they send out a weak radio signal. The time this takes differs from tissue to tissue, for example between fat and water. That gives contrast.
Where the signal came from. Extra coils add a small gradient, so the field, and so the frequency, changes along the body. A pulse at one frequency then excites only one slice.
A drawing of a patient lying inside a large ring magnet. Arrows show the strong steady field along the body. Inside, small coils make a gradient, so the field is a little stronger towards the head than towards the feet. A radio-frequency coil sends a short pulse and then picks up the weak signal that the hydrogen nuclei send back. A small graph beside it shows the resonant frequency rising in a straight line from the feet to the head.
The main field comes from a superconducting coil cooled by liquid helium. MRI uses no ionising radiation. It shows the brain and the joints very well. But any iron in the room, or in the patient, is pulled hard by the field, so metal is strictly kept out.
Set the gradient to 10 mT/m. How much does the frequency change between z=0 and z=0.1 m? Now set the gradient to zero. Could the scanner tell the slices apart?
Practise with new numbers
Try it in Python
The program finds the four voxels from five readings, and the Larmor frequency at two field strengths.
Common mistakes
Thinking CT uses a different kind of ray. It uses X-rays, as a plain radiograph does. The difference is the many angles and the computer.
Saying MRI uses X-rays or radioactivity. It uses a magnetic field and radio waves only.
Forgetting the gradient. Without it, every part of the body would resonate at the same frequency.
Mixing up pixel and voxel. A voxel is a pixel with a thickness, a small block of the slice.
Remember these
CT: a fan beam turns around the body, and a computer reconstructs the voxels of a slice.
CT number: 1000(μ−μw)/μw. Water 0 HU, air about −1000 HU.
CT gives a much larger dose than a plain X-ray.
MRI: f=42.58MHz/T×B for hydrogen. A radio pulse at f makes the protons resonate.
Relaxation times give contrast. A gradient picks the slice. No ionising radiation.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
A voxel has a CT number of 0 HU. What does it most likely hold?
What frequency does a 3.0 T scanner use for hydrogen?
Why is MRI chosen over CT for a scan of the brain of a child, when either would do?
Why must a patient remove a steel hair clip before an MRI scan?
References
OpenStax College Physics 2e, Chapter 22 Magnetism, on more applications of magnetism (magnetic resonance imaging).
Cambridge International AS and A Level Physics (9702) syllabus, Medical physics, computed tomography.
Enroll free in X-Ray Imaging, CT and MRI
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.