A CT scanner spins an X-ray tube around you three times a second, takes about a thousand shadows each turn, and a computer turns them into slices of your body. Inside the doughnut-shaped gantry, a heavy disc carries an X-ray tube and a curved detector with 64 or more rows of sensors.
A CT scanner spins an X-ray tube around you three times a second, takes about a thousand shadows each turn, and a computer turns them into slices of your body. Take one apart in 3D, then rebuild a slice yourself with real maths.
CTScanClearOpened 24 Jul 202615 min to playFree · no sign-up
In 60 seconds
A spinning ring of X-rays
Inside the doughnut-shaped gantry, a heavy disc carries an X-ray tube and a curved detector with 64 or more rows of sensors. Slip rings let it spin continuously, once every 0.25 to 0.5 seconds, while the table slides you through.
Hundreds of shadows, one slice
Each detector measures how much X-ray got through along one line. One snapshot is a projection: a 1D shadow of the slice. About 1,000 projections per turn, stacked by angle, make a sinogram. In a helical scan the table moves as the tube spins, so the beam traces a spiral.
Rebuilding the picture
Smear every shadow back across the image and add them up: back-projection. On its own it gives a blurry, streaky slice. Sharpen each shadow first with a ramp (Ram-Lak) filter and the true slice appears. The maths dates from Johann Radon in 1917.
Every pixel is a number
CT measures attenuation and reports it in Hounsfield units: water is 0, air is −1000, fat about −100, bone +400 to over +1000. A window of level and width decides which numbers become grey, so the same scan can show brain, lung or bone.
Dose and speed
A head CT gives about 2 mSv, a chest CT about 7 and an abdomen and pelvis CT about 8 to 10, against about 2.4 mSv a year from nature and 0.02 to 0.1 for a chest X-ray. Lower dose means more noise, so scanners modulate the tube current and use iterative reconstruction. A whole-body trauma scan takes seconds.
Modern tricks
Dual-energy CT uses two X-ray energies to tell materials apart, like uric acid and calcium kidney stones. Cardiac CT times the scan to the ECG. Photon-counting CT, first cleared in 2021, counts every X-ray and measures its energy.
A ring that spins an X-ray tube and a curved camera around you, faster than you can blink.
A CT scanner looks like a big doughnut with a bed that slides through the hole. The doughnut is called the gantry. Under its smooth cover is a heavy metal disc, well over a metre across, that can spin.
On one side of the disc sits an X-ray tube. A collimator, two blocks of lead, trims its X-rays into a thin fan. Straight across the hole is a curved detector: rows of tiny sensors, often 64 rows of about 900 each, that measure how much X-ray gets through you. (How X-rays are made and why bone stops more of them is the story of XRayClear.)
The whole disc spins around you once every 0.25 to 0.5 seconds. It can keep spinning in one direction because power and data cross over through slip rings: metal bands with brushes rubbing on them, so no cables get wound up. The disc also carries a high-voltage generator and a cooling unit, because almost all the tube's energy turns into heat.
The patient table moves you through the ring in steps of a fraction of a millimetre. In the next room, behind lead glass, a radiographer runs the scan from the console.
The tube spins, each angle casts a shadow, and the table glides through in a spiral.
One X-ray picture squashes your whole body into a flat shadow: bones in front hide things behind. CT gets around that by taking a shadow from every direction.
As the tube spins, the fan of X-rays passes through the body and lands on the detector. Each detector element measures how much got through along its own straight line. One snapshot gives a projection: a 1D shadow profile of the slice from that angle. A scanner takes about 1,000 of them in every turn.
Stack the profiles one under another, in order of angle, and you get a strange striped picture called a sinogram. Every point in the body traces out a wavy line in it, like a sine wave, which is where the name comes from.
Modern scanners scan in a spiral (also called helical scanning): the table glides through while the tube keeps spinning. The pitch is how far the table moves in one turn, divided by the width of the beam. At pitch 1 the spiral's turns just touch. And with 64 rows of detectors, each turn covers 64 slices at once.
Smear every shadow back across the image, but sharpen it first.
The scanner never sees the slice itself. It only has shadows. How do you get the picture back? This board does it for real, with a famous test slice called the Shepp–Logan head.
Take one shadow and smear it back across the image, along the direction the X-rays travelled. Where the shadow was dark, the smear is bright. Do it for every angle and add the smears up. That is back-projection. The smears pile up where something really is, so the slice appears, but blurry, and with too few angles you see star-shaped streaks.
The fix is to filter each shadow first. The ramp filter makes edges sharper and adds small dips on either side, so the extra blur cancels out when the smears are added. This is filtered back-projection, and for decades it was how nearly every CT image was made. Its neatest version was published in 1971 by G. N. Ramachandran and A. V. Lakshminarayanan in Bangalore, so the filter is called Ram-Lak.
The maths behind all this was worked out in 1917 by Johann Radon, long before anyone could build the machine. Today many scanners use iterative reconstruction, which guesses, checks against the shadows and corrects, over and over.
Every pixel is a number. You choose which numbers become grey.
A CT image isn't really a photo. Every pixel is a number saying how strongly that tiny bit of the body stops X-rays, its attenuation μ. Godfrey Hounsfield turned it into a handy scale, now named after him:
HU = 1000 × (μ − μwater) ÷ μwater
So water is 0 and air is −1000. Fat is about −100, soft tissues sit between about +20 and +80, and bone runs from a few hundred to well over +1000. The same tissue gives the same number on any scanner, which is what lets doctors measure things.
But a screen shows only about 256 shades of grey, and our eyes tell apart far fewer. So the viewer picks a window: a level (the middle) and a width. Everything below the window is black and everything above is white. A narrow brain window shows the small difference between blood and brain. A wide bone window shows the skull's fine structure. A lung window shows the air-filled lungs.
Iodine contrast, injected into a vein, stops X-rays strongly, so blood vessels and the heart's chambers light up.
A CT scan gives more dose than an X-ray picture, but it is fast and it sees so much more.
Radiation dose from scans is measured in millisieverts (mSv). We all get some every year from nature: rocks, radon gas in the air, space and even our food. The world average is about 2.4 mSv a year.
A chest X-ray gives about 0.02 to 0.1 mSv. A CT scan takes hundreds of X-ray views, so it gives more: about 2 mSv for the head, about 7 for the chest and about 8 to 10 for the belly and pelvis. Those figures are typical averages for adults; the real dose depends on the scanner, the settings and the person.
Why not just use less? Because X-rays arrive as separate particles, and fewer of them make a noisier, grainier picture. Halve the dose and the noise grows by about 40% (it goes with 1 ÷ √dose). Scanners fight this in clever ways. Tube current modulation turns the tube down where the body is thin and up where it is thick. Iterative reconstruction cleans up noise in the computer, so less dose is needed for the same picture.
CT's great strength is speed. A whole-body scan after a serious accident takes only seconds, and a scan for a suspected stroke can show within minutes whether there is bleeding in the brain. That is why doctors weigh the small radiation risk against what the scan can show.
How today’s scanners tell materials apart, freeze a beating heart and count every X-ray.
Dual-energy CT scans with two X-ray energies at once, for example 80 and 140 kilovolts, often from two tubes on the same ring. Low-energy X-rays are stopped much more by heavy atoms like calcium and iodine than high-energy ones are, while water and uric acid barely care. So the ratio of the two readings tells materials apart: a uric acid kidney stone can often be dissolved with medicine, while a calcium stone may need other treatment.
Cardiac CT has to photograph a heart that never stops. The scanner watches the ECG and takes its data in the heart's quietest moment, between beats. Two tubes a quarter turn apart need only a quarter turn to collect a slice, which freezes motion down to about 66–83 milliseconds. With iodine in the blood this becomes CT angiography: a map of the arteries.
Photon-counting CT, first cleared by the US FDA in September 2021, uses a new kind of detector. Instead of turning X-rays into light and measuring the total glow, a crystal of cadmium telluride turns each X-ray straight into a pulse of charge, and the electronics count every photon and sort it by energy. That means sharper images, less noise and energy information in every scan.
Why can the ring of a modern CT scanner keep spinning the same way without stopping?
Slip rings pass power and data across without cables. Brushes rubbing on metal rings carry power and data, so nothing gets wound up. Before slip rings, the gantry had to stop and turn back after every slice.
What sits directly across the hole from the X-ray tube?
A curved detector array. The detector catches the fan of X-rays after it has passed through the patient, and measures how much got through.
About how long does one turn of the ring take in a modern scanner?
About a third of a second. Most scanners turn once every 0.25 to 0.5 seconds. The first EMI scanner of 1971 took about 5 minutes for one set of views.
What is a projection in CT?
The shadow profile of the slice from one angle. Each detector element measures X-rays along one line; together they give a 1D shadow of the slice from that direction.
A scan uses a 40 mm wide beam and the table moves 60 mm per rotation. What is the pitch?
1.5. Pitch = table travel per rotation ÷ beam width = 60 ÷ 40 = 1.5. The spiral has gaps between its turns.
Why was helical scanning such a big step?
The table no longer had to stop for each slice, so a whole chest fits in one breath-hold. Continuous spinning plus continuous table motion lets the scanner cover a whole region in seconds, without gaps from breathing between slices.
What does plain back-projection (no filter) give you?
A blurry image with star-shaped streaks. The smears pile up in the right places, but they also spread everywhere else, blurring the picture.
What does the ramp filter do before back-projection?
Sharpens each projection and adds dips that cancel the blur. It boosts fine detail, so when the filtered smears are added the blur cancels out.
Who published the Ram-Lak filter in 1971?
G. N. Ramachandran and A. V. Lakshminarayanan. Working in Bangalore, they showed that a simple convolution in real space does the job, about 30 times faster than using Fourier transforms.
What is the Hounsfield value of water?
0. The scale is built around water: HU = 1000 × (μ − μwater) ÷ μwater, which is 0 for water.
Why does a bleed near the brain show clearly in a brain window but vanish in a bone window?
The brain window spreads a narrow range of HU over all the greys, so a 30 HU difference is easy to see. In a width of 80 HU, a 30 HU difference is over a third of the grey scale. In a width of 1,800 HU it is under 2%.
Which is closest to the HU of fat?
−100. Fat stops X-rays a little less than water, so it sits just below zero, around −100.
About how much dose does a chest CT give, compared with a chest X-ray?
Roughly 70 to 350 times as much. About 7 mSv against 0.02 to 0.1 mSv. CT takes hundreds of views from all around.
If you halve the dose, what happens to the image noise?
It grows by about 40%. Noise goes with 1 ÷ √dose. Half the dose gives √2 ≈ 1.41 times the noise.
Why is CT so useful after a serious accident?
It can scan the whole body in seconds and show bleeding and broken bones. Speed matters: a trauma CT takes seconds and shows injuries all over the body at once.
How does dual-energy CT tell a uric acid stone from a calcium stone?
Calcium stops low-energy X-rays much more than high-energy ones; uric acid changes far less. Heavier atoms like calcium absorb low-energy X-rays strongly. Compare the two readings and the ratio gives the material away.
Why does cardiac CT watch the ECG?
To take data in the heart’s quietest moment between beats. The heart keeps moving. Timing the scan to the ECG catches it when it is most still, so the image is sharp.
What does a photon-counting detector do differently?
It counts each X-ray photon and measures its energy. A cadmium telluride crystal turns each X-ray straight into a charge pulse, which is counted and sorted by energy.
Words worth knowing
Gantry
The doughnut-shaped part of a CT scanner that holds the spinning X-ray tube and detector.
Projection
The shadow profile of a slice from one angle: how much X-ray each detector received.
Sinogram
All the projections of a slice stacked by angle; each point in the body traces a sine-shaped line in it.
Pitch
Table travel per rotation divided by the beam width. At pitch 1 the spiral's turns just touch.
Filtered back-projection
Rebuilding a slice by sharpening each projection with a ramp filter and smearing it back across the image.
Hounsfield unit
CT's scale of attenuation: HU = 1000 × (μ − μwater) ÷ μwater, so water is 0 and air is −1000.
Window level and width
The range of Hounsfield units a viewer maps from black to white.
Millisievert
A unit of radiation dose. The world average from natural sources is about 2.4 mSv a year.
Dual-energy CT
Scanning at two X-ray energies to tell materials apart by how their attenuation changes with energy.
Fork it. Teach with it.
This box is plain HTML, CSS and JavaScript, with no build step and no accounts. Run it yourself and it sends nothing anywhere. The code is MIT. The words, images and videos are CC BY 4.0, so you can reuse them anywhere if you credit “Glassbox, glassbox.how/e/ctscanclear”.