Try the code and the simulations beside the lesson.
A shadow made of numbers
An X-ray picture is a shadow. Where the beam is absorbed, the detector gets little and the picture is white. Where the beam passes, the picture is dark. Bone looks white and the lungs look dark. To understand the picture we need to know how a beam is absorbed.
The exponential law
Each thin layer of a material removes the same fraction of the photons that reach it. That gives an exponential fall with the thickness x:
I=I0e−μx
Here μ is the linear attenuation coefficient, often in cm−1. It depends on the material and on the photon energy. The thickness that halves the intensity is the half-value thickness. From e−μx1/2=21,
x1/2=μln2
Some books also use the mass attenuation coefficientμm=μ/ρ, in cm2/g. It compares materials of different density fairly.
Worked example: bone in an arm
Take μ=0.20cm−1 for soft tissue and μ=0.62cm−1 for bone, at the energy of a typical beam. One path crosses 8.0 cm of tissue. A second path crosses 6.0 cm of tissue and 2.0 cm of bone.
Tissue only.μx=0.20cm−1×8.0cm=1.6. So I/I0=e−1.6=0.202.
With bone. The exponents add: 0.20cm−1×6.0cm+0.62cm−1×2.0cm=2.44. So I/I0=e−2.44=0.087.
The contrast. The detector behind the tissue gets 0.0870.202=2.3 times as much. The bone shows up clearly.
How tissue absorbs X-rays
Three processes remove photons from the beam.
The photoelectric effect. The photon gives all its energy to an inner electron of an atom, and the photon is gone. It is strongest at low energy and for a high atomic number Z. Roughly, it grows as Z3 and falls as 1/E3. Bone holds calcium, so its Z is higher than that of soft tissue. This is the main source of contrast.
Compton scattering. The photon bounces off a loosely held electron and goes on in a new direction with less energy. It depends mainly on the number of electrons, so it changes little from tissue to bone. It is the main process from about 30 keV upwards in soft tissue. Scattered photons fog the picture.
Pair production. A photon of more than 1.022 MeV can turn into an electron and a positron near a nucleus. Diagnostic X-rays never have so much energy, but radiotherapy beams do.
So a lower voltage gives more contrast, because more photons are taken out by the photoelectric effect. It also gives the patient a larger dose. A radiographer balances the two.
Making soft organs show up
The stomach and the blood vessels have almost the same μ as the tissue around them. A contrast medium with a high Z fixes this. A patient swallows a barium meal (Z=56) to show the gut. A compound of iodine (Z=53) injected into the blood shows the vessels, in an angiogram.
A sharp picture
A picture can have good contrast and still be blurred.
A small focal spot on the anode gives sharp edges to the shadows.
A grid of thin lead strips in front of the detector stops most scattered photons.
A short exposure stops the patient moving during the picture.
Today the detector is usually a digital flat panel. Older films used a screen that glows when X-rays hit it, to cut the dose.
Set the thickness to 2 cm. How many times more of the beam gets through tissue than bone? Now lower both coefficients, as a higher voltage does. Does the contrast grow or shrink?
Practise with new numbers
Try it in Python
The program finds the share of the beam along two paths through an arm, and the half-value thickness of each material.
Common mistakes
Treating attenuation as a straight-line fall. Each layer removes a fraction of what is left, so the fall is exponential.
Using the half-value thickness as 1/μ. It is ln2/μ.
Saying bone is white because it reflects X-rays. It absorbs them. Less reaches the detector behind it.
Thinking Compton scattering gives contrast. It depends mainly on the number of electrons and mostly fogs the picture.
Remember these
I=I0e−μx and x1/2=ln2/μ. Layers add in the exponent.
Photoelectric effect: about Z3/E3, the main source of contrast.
halves it. Bone absorbs far more than soft tissue, mainly by the photoelectric effect, and that difference is the contrast of the picture. Barium and iodine make soft parts show up.
about 30 min1 simulation2 practice questions1 Python program5 questions to check yourself
This lesson is free to read. Enroll free to keep your place and take the tests.