Noisy synthetic sinogram
Gaussian noise at 8 percent of the sinogram RMS is added to 180 projections of the ellipse phantom before a Shepp–Logan back projection. Seed 11 fixes the noise. The grain in the reconstruction is the noise, propagated by the ramp. It is not quantum noise from a scanner.
Noise model
sinogram_noisy = sinogram + 0.08 * RMS(sinogram) * Z, Z standard normal, seed 11
Phantom
Modified Shepp–Logan

Sinogram
Radon transform, angle by detector

Reconstruction
Filtered back projection

What this page generates
A sinogram’s overall scale depends on how many pixels the rays sum. An absolute noise standard deviation is hard to guess, so this bench uses a fraction of the root-mean-square of the clean sinogram. At 0.08 the grain is obvious in the projection image and still leaves the bright rim recoverable. The same fraction at 0.02, on the other phantom page, is a mild haze. Comparing those two reconstructions is a lesson in noise gain, not a change of anatomy, because the ellipses do not move.
The ramp filter multiplies high frequencies. Noise lives in those frequencies, so filtered back projection amplifies it. The Shepp–Logan sinc window exists to give some of that gain back. Even with the window, 8 percent RMS on the projections becomes streaky, salt-and-pepper structure in the reconstruction, especially outside the head where the true density is zero and there is no signal to hide the streaks. Inside the rim the lobes remain visible. That contrast is the picture this page is for.
Seed 11 is not seed 4. The two noisy pages do not share a noise field. If you need a paired comparison, set both pages to the same seed in the controls and rebuild. The static PNGs and the sample files stay on the seeds printed here. The noise draws use the same mulberry32 and Box–Muller path as the formula benches, one normal deviate per sinogram bin, in row-major order.
Do not describe this grain as dose, mAs, or a patient size. Those words belong to real acquisitions. This grain is a Gaussian vector added to a sum of ellipses. The export says SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com).
Generating rule
Noise model
sinogram_noisy = sinogram + 0.08 * RMS(sinogram) * Z, Z standard normal, seed 11
Check values
Worked numbers
Seed 11 scales normal draws by 0.08 times the clean-sinogram RMS. After the noise is added, the stored sinogram RMS is 18.06. That number is not the phantom’s mid-grid density (0.200). The streaks in the rebuild are this noise after the ramp, not a different head.
Parameters and defaults
| Parameter | Default | Range | Effect |
|---|---|---|---|
| noise fraction | 0.08 | 0 to 1 | Scales the normal deviates by the sinogram RMS. |
| filter | Shepp–Logan | Ram–Lak, Shepp–Logan, cosine | How much of the amplified noise the window removes. |
| angles | 180 | 12 to 360 | More views average some of the streak energy. |
| size | 128 | 32 to 160 | Changes both the ray sums and the RMS. |
| seed | 11 | unsigned 32-bit | Repeats every noise sample in bin order. |
Python for this seed
Full script with mulberry32() & box_muller() available via Copy Python above
# SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com)
SIZE = 128
ANGLES = 180
FILTER = "shepp-logan"
NOISE_FRACTION = 0.08
SEED = 11
phantom = shepp_logan(SIZE)
clean = radon(phantom, ANGLES)
# box_muller noise and fbp() are in the copied scriptExercises
- EXERCISE 01Show a class why a ramp filter makes projection noise look worse after reconstruction.
- EXERCISE 02Compare 2 percent and 8 percent noise on the same ellipses.
- EXERCISE 03Give an image-processing assignment a ground-truth phantom and a noisy rebuild.
Questions
Is the RMS computed before or after noise is added?
Before. The scale factor is the RMS of the clean projections, then the noise is added.
Why is the background streaky rather than smoothly gray?
Back projection paints each noisy detector sample along a line. Those lines remain visible when the true value is zero.
Can I turn the noise into Poisson counts?
Not in this version. The model is additive Gaussian. Do not relabel it as photon noise.
Related
- the mild-noise Shepp–Logan reconstruction
- a noiseless ramp reconstruction
- CT controls for other fractions
- CSV samples from the formula benches
- Static CSV for seed 11
SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com). Do not present the download as a real measurement.