S15 · Lesson 38 · X-ray imaging and computed tomography
Producing X-rays in a tube, exponential attenuation with half-value layers, contrast between bone and soft tissue, projections as line integrals, reconstructing slices by filtered back-projection, Hounsfield units, and the photon noise that sets dose
An X-ray image is a shadow: photons that make it through the body expose the detector, and bone, which absorbs more, leaves a light silhouette. A plain radiograph flattens the whole body onto one plane. Computed tomography measures thousands of such shadows from every angle around the patient and solves for the attenuation at every point in a slice, the inverse problem that won Hounsfield and Cormack the 1979 Nobel Prize. The mathematics is the Fourier-slice theorem of S7's world, and the limit on image quality is counting statistics: each pixel is only as good as the number of photons behind it.
- The fraction of X-rays transmitted through soft tissue (, about 0.19 cm⁻¹ at diagnostic energies) of thickness L, with and without a 3 cm bone () in the path.
- Attenuation is exponential, so each half-value layer, , halves the beam.
- The contrast between paths with and without bone, , doesn't depend on how much soft tissue surrounds it.
Predict
Diagnostic X-rays are attenuated by soft tissue with μ ≈ 0.19 cm⁻¹. What fraction passes straight through a 20 cm abdomen?
= 0.022. Only 2% of the photons reach the detector unscattered; the rest are absorbed or scattered, depositing dose. Each half-value layer is ln 2/0.19 = 3.6 cm, and 20 cm is five and a half of them.
Name it
Making X-rays
Electrons accelerated through the tube voltage (60 to 140 kV) strike a tungsten anode. Most of their energy becomes heat; under 1% becomes bremsstrahlung and characteristic X-rays, with photon energies up to e times the tube voltage, so a 100 kV tube's shortest wavelength is = 1.24 nm·keV/100 keV = 0.0124 nm.
Attenuation
A narrow beam through a uniform material falls as
μ depends on photon energy and on the material's density and atomic number (photoelectric absorption grows roughly as ), which is why calcium-rich bone and iodine contrast agents stand out. Through a path of different materials the exponents add: .
Projections and reconstruction
Each CT measurement gives a line integral of attenuation:
The set of all projections at all angles is the Radon transform of the slice. Filtered back-projection filters each projection with a ramp filter |k| and smears it back across the image along its direction; summed over angles, that inverts the transform. Sampling needs about views for N detector bins across the field.
Hounsfield units
CT reports attenuation relative to water:
so water is 0, air −1000, soft tissues tens to a few tens of HU, and dense bone around +1000 or more.
Noise and dose
Photons arrive randomly, so a measurement built on N detected photons has relative noise . Halving the noise takes four times the photons, and four times the dose.
Worked example
A beam crosses 20 cm of soft tissue, or 17 cm of soft tissue plus 3 cm of bone with μ = 0.5 cm⁻¹. What's the contrast between the two paths, and what's one projection value?
Show the solution
- Contrast between the paths. The bone path transmits times as much, a contrast of 60%.
- Soft tissue alone.
- Projection value. which is just μL = 0.19 × 20.
Answer the bone path transmits 0.395 times as much, a 60% contrast, and the soft-tissue path's projection value is 3.80.
Worked example
A tissue has μ = 0.21 cm⁻¹ where water's is 0.19. What's its CT number? How many photons give 1% noise, and how many views does a 512-bin detector need?
Show the solution
- CT number.
- Photons for 1% noise. per measurement.
- Views. A 512-bin detector needs about views around the patient.
Answer the tissue's CT number is +105, 1% noise takes 10,000 photons per measurement, and the detector needs about 800 views.
Worked example
A CT protocol gives acceptable noise at 2 mSv with 1 mm pixels and 5 mm slices. What dose would keep the same noise with 0.5 mm pixels and 2.5 mm slices?
Show the solution
- How noise scales. In CT the noise variance in a voxel goes as with D the dose, w the pixel width and h the slice thickness.
- Why. Fewer photons pass through each smaller voxel, and the reconstruction filter amplifies the finer detail's noise.
- Dose for the smaller voxels. Halving w costs a factor of 8, and halving h another 2: a sixteenfold rise.
- Consequence. That's why high-resolution scans are limited to small regions or accept more noise.
Answer it would take 32 mSv, sixteen times the dose.
Check
What fraction of a narrow X-ray beam passes through 5 cm of tissue with μ = 0.19 cm⁻¹?
Check
What's the half-value layer of a material with μ = 0.19 cm⁻¹?
Write units the way you normally would: 1.5 cm, 15 mm and 0.015 m are the same answer.
Check
A voxel has μ = 0.23 cm⁻¹ and water's is 0.19 cm⁻¹. What's its CT number, taking air as zero?
Check
A CT detector sees 0.02 of the unattenuated intensity. What's the projection value, ∫μ dl?
Check
How many detected photons give a relative noise of 0.01?
Check
Bone with μ = 0.45 cm⁻¹ replaces 5 cm of soft tissue with μ = 0.19 cm⁻¹ in a beam's path. What's the contrast, the fractional drop in transmitted intensity?
Check
A CT scan at 1 mSv is changed: pixel width scaled by 0.5, slice thickness by 0.4, and target noise (standard deviation) by a factor of 0.7.
(a)
What dose does the new protocol need?
Check
A material has attenuation coefficient μ (cm⁻¹); water's is .
Step 1
What fraction of a narrow beam passes through x cm?
Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.
Step 2
What is its half-value layer?
Step 3
What is its CT number?
Explain why
Why does a CT image need projections from many angles, when a radiograph uses only one?
A single projection records only the total attenuation along each line through the body, so structures at different depths along the same line add together and can't be separated: a radiograph superimposes everything on one plane. Each additional angle gives new line integrals through the same points along different paths. With projections over a full half-turn, there are enough independent line integrals to solve for the attenuation at every point in the slice, which is what filtered back-projection does. The ramp filter is needed because simple back-projection over-weights the low spatial frequencies near the center of Fourier space, where every projection's slice overlaps.
Practice
Keep practicing
10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.