MockDataLab
Medicine & ImagingRadiology / TMI-style referenceseed 11

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

Static snapshotCSV (seed 11) ↓

Phantom

Modified Shepp–Logan

Phantom synthetic CT figure

Sinogram

Radon transform, angle by detector

Sinogram synthetic CT figure

Reconstruction

Filtered back projection

Reconstruction synthetic CT figure

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

Parameters, defaults, and what they change
ParameterDefaultRangeEffect
noise fraction0.080 to 1Scales the normal deviates by the sinogram RMS.
filterShepp–LoganRam–Lak, Shepp–Logan, cosineHow much of the amplified noise the window removes.
angles18012 to 360More views average some of the streak energy.
size12832 to 160Changes both the ray sums and the RMS.
seed11unsigned 32-bitRepeats every noise sample in bin order.

Python for this seed

Full script with mulberry32() & box_muller() available via Copy Python above

reproduce_seed_11.pyseed 11
# 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 script

Exercises

  • 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

SYNTHETIC DATA - generated by MockDataLab (mockdatalab.com). Do not present the download as a real measurement.