Algorithm Search⌘K

Definitionintro

Shepp-Logan phantom

Also called head phantom.

A standard test image of ten ellipses that models a head section, whose Radon transform is known in closed form.

The Shepp-Logan phantom is a test image for tomographic reconstruction. It is a sum of ten ellipses, each with a constant density, and it models a cross section of a human head: a skull, the brain, two ventricles and some small tumors. Shepp and Logan introduced it in 1974 to compare reconstruction methods. Each ellipse has a Radon transform in closed form, so the exact sinogram of the phantom is known at every angle and every detector position. This lets a test compare a reconstruction with the true image, with no error from the simulation of the data.

Definition

An ellipse with density ρ\rho, center c=(x0,y0)c = (x_0, y_0), semi-axes AA and BB, and rotation angle α\alpha is the function that equals ρ\rho at the points xx with

((x−c)⋅(cos⁡α,sin⁡α))2A2+((x−c)⋅(−sin⁡α,cos⁡α))2B2≤1\frac{\big((x - c)\cdot(\cos\alpha, \sin\alpha)\big)^2}{A^2} + \frac{\big((x - c)\cdot(-\sin\alpha, \cos\alpha)\big)^2}{B^2} \le 1

and 0 at all other points. So AA is the semi-axis along the direction at the angle α\alpha from the xx axis, counterclockwise, and BB is the other one. The Shepp-Logan phantom is the sum of the ten ellipses of the table below, on the square [−1,1]2[-1, 1]^2. These are the values of Kak and Slaney, Table 3.1. The table gives the semi-axes, and the angle in degrees.

ellipse center (x0,y0)(x_0, y_0) AA BB α\alpha ρ\rho modified ρ\rho
a, outer edge of the skull (0, 0) 0.92 0.69 90 2.0 1.0
b, brain (0, -0.0184) 0.874 0.6624 90 -0.98 -0.8
c, ventricle (0.22, 0) 0.31 0.11 72 -0.02 -0.2
d, ventricle (-0.22, 0) 0.41 0.16 108 -0.02 -0.2
e (0, 0.35) 0.25 0.21 90 0.01 0.1
f (0, 0.1) 0.046 0.046 0 0.01 0.1
g (0, -0.1) 0.046 0.046 0 0.01 0.1
h (-0.08, -0.605) 0.046 0.023 0 0.01 0.1
i (0, -0.605) 0.023 0.023 0 0.01 0.1
j (0.06, -0.605) 0.046 0.023 90 0.01 0.1

Kak and Slaney name the density column a refractive index, because their chapter treats any kind of ray. In CT the densities stand for X-ray attenuation in arbitrary units. The values add where ellipses overlap, so the phantom takes only a few values:

  • 2.0 on the skull, the ring between ellipses a and b.
  • 1.02 in the brain, and 1.02 at the center (0,0)(0, 0), where only a and b hold the point: 2−0.98=1.022 - 0.98 = 1.02.
  • 1.0 in the ventricles c and d.
  • 1.03 in the small ellipses e to j, and 1.04 where f lies in e.
  • 1.01 where e or g overlaps the ventricle d.
  • 0 outside the skull.

These are the labels of Kak and Slaney, Fig. 3.4. The head is 1.38 wide in xx and 1.84 high in yy.

Pixels. An n×nn \times n image of the phantom covers the square [−1,1]2[-1, 1]^2. Pixel (i,j)(i, j) has row ii from the top and column jj from the left, and its center is at xj=−1+(2j+1)/nx_j = -1 + (2j+1)/n and yi=1−(2i+1)/ny_i = 1 - (2i+1)/n. So yy goes up, as in the figure of Shepp and Logan, and the tumors h, i and j are at the bottom of the image. The value of the image at a pixel is the phantom at the pixel center.

The modified phantom. Toft (1996) kept the ten ellipses and changed the densities to those of the last column. The value at the center is 1−0.8=0.21 - 0.8 = 0.2, the ventricles are 0, and the small ellipses are 0.3 or 0.4. The structure is the same, but the contrast inside the brain is ten times higher in absolute terms.

The projections in closed form. Use the Radon convention Rf(θ,s)=∫f(s ω+t ω⊥) dt\mathcal{R}f(\theta, s) = \int f(s\,\omega + t\,\omega^\perp)\,dt with ω=(cos⁡θ,sin⁡θ)\omega = (\cos\theta, \sin\theta). A centered ellipse with α=0\alpha = 0 has the projection

p0(θ,s)=2ρABa(θ)2a(θ)2−s2for ∣s∣≤a(θ),a(θ)2=A2cos⁡2θ+B2sin⁡2θ,p_0(\theta, s) = \frac{2\rho A B}{a(\theta)^2}\sqrt{a(\theta)^2 - s^2} \quad \text{for } |s| \le a(\theta), \qquad a(\theta)^2 = A^2\cos^2\theta + B^2\sin^2\theta,

and 0 for ∣s∣>a(θ)|s| > a(\theta) (Kak and Slaney, equation 5). Here a(θ)a(\theta) is the half-width of the shadow of the ellipse. A shift by cc and a rotation by α\alpha give

p(θ,s)=p0(θ−α,  s−c⋅ω(θ)),p(\theta, s) = p_0(\theta - \alpha,\; s - c\cdot\omega(\theta)),

which is Kak and Slaney, equation 6, with c⋅ω(θ)=∣c∣cos⁡(γ−θ)c\cdot\omega(\theta) = |c|\cos(\gamma - \theta) for the polar angle γ\gamma of cc. The projection of the phantom is the sum of the ten terms. It costs O(1)O(1) per ray, with no quadrature.

Examples and non-examples

The values on two lines. At θ=0\theta = 0 the line s=0s = 0 is the vertical axis x=0x = 0. It passes through a, b, e, f, g and i, and the sum of the ten terms is Rf(0,0)=1.97426\mathcal{R}f(0, 0) = 1.97426. A numerical integral of the phantom along the axis gives the same value. At θ=π/2\theta = \pi/2 the line s=0s = 0 is the horizontal axis, which crosses the skull where it is thinner and passes through both ventricles, and Rf(π/2,0)=1.45071\mathcal{R}f(\pi/2, 0) = 1.45071.

The mass. The integral of an ellipse is ρπAB\rho\pi A B. The sum over the table is ∫f dx=2.20176\int f\,dx = 2.20176. Each row of the exact sinogram has this integral, which gives a quick check of a projector. The modified phantom has the mass 0.49526.

The test in practice. The filtered back-projection and direct Fourier reconstruction pages build the sinogram from the formulas above, with 32 angles and 47 detector bins, and reconstruct a 32×3232 \times 32 image. Filtered back-projection with the Ram-Lak kernel gives 1.0217 at the pixel (16,16)(16, 16), whose center is (1/32,−1/32)(1/32, -1/32), where the true value is 1.02. Direct Fourier reconstruction with bilinear interpolation gives 1.048 there.

Low contrast. The brain, the ventricles and the tumors differ by 0.01 to 0.02, against the skull at 2.0. An image shown on the full range [0,2][0, 2] shows only the skull. To see the inside, show the window [1.0,1.05][1.0, 1.05] or a similar one, or use the modified phantom. The low contrast makes the phantom a hard test: a method must show differences of 1 percent next to a strong edge. Errors near the skull, such as the ringing that the ramp filter causes at a sharp edge, can be larger than these differences and hide the tumors.

Non-example: a pixel image as the ground truth. A sampled image of the phantom is not the phantom. If the test computes the data from the pixel image with the same discrete projector that the reconstruction uses, the test checks the solver against its own model and hides the error of the discretization. This is sometimes called the inverse crime. Compute the data from the closed form, or from a much finer grid, and compare the result with the phantom at the pixel centers.

Non-example: the modified phantom as the same test. The modified phantom has the same edges but other densities. Results on the two phantoms are not comparable, and an error that is 1 percent of the brain value in one is a different fraction in the other. State which one a table uses.

  • Radon transform: the transform whose closed form for an ellipse gives the exact data.
  • Sinogram: the image of the projections. The head fills a band whose half-width goes between 0.69 at θ=0\theta = 0 and 0.92 at θ=π/2\theta = \pi/2.
  • Filtered back-projection: the method Shepp and Logan tested on the phantom, with the kernel that now has their name.
  • Ramp filter: the Shepp-Logan kernel, from the same paper, is one discrete form of it.
  • PSNR: a common figure for the error of a reconstruction against the phantom.

References

  1. L. A. Shepp and B. F. Logan, The Fourier reconstruction of a head section, IEEE Transactions on Nuclear Science 21(3), 1974, pp. 21 to 43 (the head phantom of ten ellipses and its use to compare reconstruction methods)
  2. A. C. Kak and M. Slaney, Principles of Computerized Tomographic Imaging, SIAM Classics in Applied Mathematics 33, 2001, Chapter 3, Section 3.1, Fig. 3.4 (the phantom and its values), equations 5 and 6 (the projection of an ellipse and of a shifted and rotated ellipse) and Table 3.1 (the ten ellipses), pp. 53 to 56
  3. P. A. Toft, The Radon Transform: Theory and Implementation, PhD thesis, Department of Mathematical Modelling, Technical University of Denmark, 1996, the modified phantom with higher contrast (general locator)

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/YSNZHZ/text.yaml