Algorithm Search⌘K

Definitioncore

Ramp filter

Also called Ram-Lak filter.

The filter with frequency response |sigma| that undoes the 1/r blur of back-projection, often multiplied by a window to limit noise.

The ramp filter is the 1D filter with the frequency response ∣σ∣|\sigma|. It acts on each projection of a CT sinogram along the detector variable ss. The back-projection operator alone gives the object blurred by the kernel 1/r1/r, whose 2D Fourier transform is 1/∣ξ∣1/|\xi|. The ramp multiplies each projection by ∣σ∣|\sigma| in frequency, and by the Fourier slice theorem this cancels the blur exactly. Back projection of the filtered projections is filtered back-projection. In practice the ramp is cut off at the Nyquist frequency of the detector and often multiplied by a window, because it amplifies high-frequency noise.

Definition

The Fourier transform uses ordinary frequency, F1g(σ)=∫g(s) e−2πisσ ds\mathcal{F}_1 g(\sigma) = \int g(s)\,e^{-2\pi i s\sigma}\,ds. The ramp filter is the operator Λ\Lambda on functions of one variable with

F1(Λg)(σ)=∣σ∣ F1g(σ).\mathcal{F}_1(\Lambda g)(\sigma) = |\sigma|\,\mathcal{F}_1 g(\sigma).

For a smooth gg that decays fast, Λg=12πHg′\Lambda g = \frac{1}{2\pi} H g', where HH is the Hilbert transform: the derivative has the multiplier 2πiσ2\pi i\sigma and HH has −i sgn σ-i\,\mathrm{sgn}\,\sigma. As a convolution, Λ\Lambda has the kernel −1/(2π2s2)-1/(2\pi^2 s^2), taken as a finite-part distribution. It is not an integrable function, and Λ\Lambda is not a convolution with an ordinary kernel.

Band-limited ramp. Let the detector spacing be τ\tau, with the Nyquist frequency b=1/(2τ)b = 1/(2\tau). The band-limited ramp is ∣σ∣|\sigma| for ∣σ∣≤b|\sigma| \le b and 0 outside. Its kernel is

h(s)=∫−bb∣σ∣ e2πisσ dσ=b2(2 sinc(2bs)−sinc2(bs)),sinc(x)=sin⁡πxπx.h(s) = \int_{-b}^{b} |\sigma|\,e^{2\pi i s\sigma}\,d\sigma = b^2\big(2\,\mathrm{sinc}(2bs) - \mathrm{sinc}^2(bs)\big), \qquad \mathrm{sinc}(x) = \frac{\sin \pi x}{\pi x}.

At the samples s=mτs = m\tau this gives

h(0)=14τ2,h(mτ)=0 for even m≠0,h(mτ)=−1π2m2τ2 for odd m.h(0) = \frac{1}{4\tau^2}, \qquad h(m\tau) = 0 \text{ for even } m \ne 0, \qquad h(m\tau) = -\frac{1}{\pi^2 m^2\tau^2} \text{ for odd } m.

The discrete filter is q[n]=τ∑mh(mτ) p[n−m]q[n] = \tau\sum_m h(m\tau)\,p[n - m]. Its frequency response τ∑mh(mτ) e−2πimντ\tau\sum_m h(m\tau)\,e^{-2\pi i m\nu\tau} is exactly ∣ν∣|\nu| on ∣ν∣≤b|\nu| \le b, because hh is band-limited to bb and the samples are at the Nyquist rate. This kernel is due to Ramachandran and Lakshminarayanan (1971).

Windowed ramps. A window W(ν)W(\nu) with W(0)=1W(0) = 1 gives the response ∣ν∣ W(ν)|\nu|\,W(\nu). The Shepp-Logan kernel uses W(ν)=sinc(ντ)W(\nu) = \mathrm{sinc}(\nu\tau). Its samples are

hSL(mτ)=−2π2τ2(4m2−1),h_{SL}(m\tau) = -\frac{2}{\pi^2\tau^2(4m^2 - 1)},

and its response is ∣ν∣ sinc(ντ)|\nu|\,\mathrm{sinc}(\nu\tau) on ∣ν∣≤b|\nu| \le b. Other common choices are the cosine, Hann and Hamming windows. A window lowers the gain at high frequency. This reduces the noise and the ringing near edges, and it also lowers the resolution.

Why the ramp. With θ∈[0,π)\theta \in [0, \pi), the inverse 2D Fourier transform in polar coordinates with a signed radius σ\sigma has the area element ∣σ∣ dσ dθ|\sigma|\,d\sigma\,d\theta. The factor ∣σ∣|\sigma| is the ramp. Without it, back projection gives R#Rf=f∗1∣x∣\mathcal{R}^\#\mathcal{R}f = f * \frac{1}{|x|}, and with it, R#(Λ Rf)=f\mathcal{R}^\#(\Lambda\,\mathcal{R}f) = f (Radon inversion formula).

Examples and non-examples

Kernel values. For τ=1/4\tau = 1/4, the band limit is b=2b = 2. The two kernels at m=0,1,2,3m = 0, 1, 2, 3 are:

mm 0 1 2 3
band-limited ramp h(mτ)h(m\tau) 4 -1.6211 0 -0.1801
Shepp-Logan hSL(mτ)h_{SL}(m\tau) 3.2423 -1.0808 -0.2162 -0.0926

Both kernels have one positive center value and negative side values that fall off like 1/m21/m^2. The responses at ν=0.5,1,2\nu = 0.5, 1, 2 are:

ν\nu 0.5 1 2
band-limited ramp 0.5 1 2
Shepp-Logan 0.4872 0.9003 1.2732

At the Nyquist frequency the Shepp-Logan response is 2 sinc(1/2)=4/π2\,\mathrm{sinc}(1/2) = 4/\pi, which is 64 percent of the ramp.

The Gaussian. The projections of f(x)=e−π∣x∣2f(x) = e^{-\pi|x|^2} are g(s)=e−πs2g(s) = e^{-\pi s^2} at each angle, with F1g(σ)=e−πσ2\mathcal{F}_1 g(\sigma) = e^{-\pi\sigma^2}. Then Λg(0)=∫∣σ∣ e−πσ2 dσ=1/π\Lambda g(0) = \int |\sigma|\,e^{-\pi\sigma^2}\,d\sigma = 1/\pi. The back projection over [0,π)[0, \pi) at the origin gives π⋅1/π=1=f(0)\pi\cdot 1/\pi = 1 = f(0). Without the ramp the back projection gives π\pi.

A truncated kernel. The infinite sampled kernel sums to zero: τ∑mh(mτ)=14τ−2π2τ∑m odd,m>01m2=0\tau\sum_m h(m\tau) = \frac{1}{4\tau} - \frac{2}{\pi^2\tau}\sum_{m \text{ odd}, m > 0}\frac{1}{m^2} = 0, since the odd sum is π2/8\pi^2/8. A kernel cut off at ∣m∣≤M|m| \le M has the response 2π2τ∑m odd,m>Mm−2>0\frac{2}{\pi^2\tau}\sum_{m \text{ odd}, m > M} m^{-2} > 0 at ν=0\nu = 0, about 1/(π2τM)1/(\pi^2\tau M). This small DC term is correct for a finite detector. A ramp sampled directly on the DFT grid sets this term to 0 and gives a constant offset in the image. So the kernel is sampled in space, zero-padded to at least 2d−12d - 1 points against circular wrap, and then transformed (Kak and Slaney, Section 3.3.3).

Noise. For white noise of variance vv per detector sample, the filtered value has variance v τ∫−bbσ2 dσ=23 v τ b3=v12τ2v\,\tau\int_{-b}^{b}\sigma^2\,d\sigma = \frac{2}{3}\,v\,\tau\,b^3 = \frac{v}{12\tau^2}. Halving the detector spacing makes the noise variance 4 times larger, which is the price of the higher resolution.

Non-example: the derivative. The derivative d/dsd/ds has the multiplier 2πiσ2\pi i\sigma. Its magnitude is a ramp, but it is odd and has a phase of ±90\pm 90 degrees, so back projection after the derivative alone does not give ff. The ramp is 12πH d/ds\frac{1}{2\pi}H\,d/ds; the Hilbert transform fixes the phase. Lambda tomography uses a second derivative, which is local, and so recovers only the edges.

Non-example: a 2D filter on the projections. The ramp acts in 1D along ss, for each angle separately. The 2D ramp ∣ξ∣|\xi| instead acts on the image after back projection, and F−1(∣ξ∣ F(R#Rf))=f\mathcal{F}^{-1}(|\xi|\,\mathcal{F}(\mathcal{R}^\#\mathcal{R}f)) = f as well. This order is valid, but the blurred image R#Rf\mathcal{R}^\#\mathcal{R}f does not vanish outside the object, and a finite grid then cuts off its tail.

References

  1. G. N. Ramachandran and A. V. Lakshminarayanan, Three-dimensional reconstruction from radiographs and electron micrographs, application of convolutions instead of Fourier transforms, Proceedings of the National Academy of Sciences 68(9), 1971, pp. 2236 to 2240 (the sampled band-limited ramp kernel)
  2. 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 smoother kernel with the sinc window)
  3. A. C. Kak and M. Slaney, Principles of Computerized Tomographic Imaging, SIAM Classics in Applied Mathematics 33, 2001, Chapter 3, Section 3.3.2 (the filter |w| in the filtered back-projection formula) and Section 3.3.3 (the sampled kernel and the zero padding)
  4. F. Natterer, The Mathematics of Computerized Tomography, SIAM Classics in Applied Mathematics 32, 2001, Section V.1 (filters for filtered backprojection)

Where this leads

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/JE1G1B/text.yaml