Algorithmadvanced
Universal back-projection
Also called Xu-Wang back-projection.
Reconstruct photoacoustic images by back-projecting b = 2p - 2t dp/dt, which combines the pressure and its time derivative, with solid angle weights. Exact for a sphere, cylinder or plane in 3D.
- Solves
- Photoacoustic tomography
- Time
- O(D T + V D) worst
- Space
- O(D T) extra
- Where
- D = the number of detectors; T = the number of time samples per detector; V = the number of image points
- Model
- Real RAM
- Properties
- deterministicexactlinear in dataiterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Minghua Xu, Lihong V. Wang, 2005
Universal back-projection reconstructs the initial pressure of photoacoustic tomography from the pressure that point detectors record on a surface around the object. Each detector signal is turned into the back-projection term , which combines the pressure and its time derivative. Each image point then sums at the time of flight from every detector, weighted by the solid angle under which the point sees that detector element. Xu and Wang (2005) showed that this one formula is exact in three dimensions for a sphere, an infinite cylinder and an infinite plane, hence the name "universal". The cost is that of a back-projection: for image points and detectors, with no filter in the Fourier domain. In two dimensions the same formula is only approximate. Exact formulas for even dimensions have a different form (Finch, Haltmeier and Rakesh 2007).
In plain words
A short laser pulse heats the tissue a little, and every absorbing spot becomes a small source of sound. Detectors around the tissue record the sound for a short time.
To find the strength of the source at one point, look at each detector at the moment the sound from that point arrived there. Take twice the signal minus twice the time multiplied by the slope of the signal. Add these numbers over all the detectors, weighted by how large each detector looks from the point, and divide by the full solid angle. On a closed sphere, the parts that come from other points cancel exactly, and only the source at that point is left.
The problem
Model. The initial pressure has compact support inside the detection surface. The pressure solves the wave equation with and zero initial velocity . The speed is known and constant; the code uses mm/µs, the usual soft tissue convention of 1540 m/s.
Input. Samples , , at point detectors on a surface . Each detector has the position , the unit normal that points toward the object, and the area of its surface element. The record must last until the sound from the far side has passed, for a sphere of radius .
Output. at image points inside .
Formula. With the solid angle element and the solid angle of the whole surface seen from ( for a sphere or a cylinder, for a plane),
The algorithm
UBP(p, detectors, Δt, c, points)- 1
for each detector d: compute b_d from p_d - 2
b_d(t_k) ← 2 p_d(t_k) - 2 t_k (p_d(t_{k+1}) - p_d(t_{k-1})) / (2Δt) - 3
for each image point r - 4
for each detector d with position r0, normal n0 and area a - 5
dΩ ← a n0·(r - r0) / |r - r0|^3 - 6
sum ← sum + dΩ · b_d(|r - r0| / c) ▷ linear interpolation in t - 7
Ω ← Ω + dΩ - 8
p0(r) ← sum / Ω ▷ or sum / Ω0 - 9
return p0
Line L2 uses the central difference inside the record and one sided differences at its two ends, where the signal is zero. Line L6 reads at the time of flight and interpolates linearly between samples; outside the record it uses zero. Line L8 divides by the sum of the solid angle elements. For a point inside a closed surface that sum is up to the quadrature error, so the result is the same, and the division corrects part of the quadrature error. For a partial surface the choice matters (see Pitfalls).
The code places the detectors on a sphere at the nodes of a Gauss-Legendre rule in times a uniform rule in the azimuth, and uses the weights of that product rule as the areas.
Example
A ball at the centre, by hand. Let with mm, a sphere of radius mm and mm/µs. The wave of a radial initial pressure has a closed form, and at a detector at distance it is
For the image point at the centre, every detector is at the distance , so line L6 reads every signal at µs. There , practically zero, and per µs. So at every detector. The solid angle elements sum to , and line L8 gives , the true value. All the information comes from the derivative term, because the pressure itself is zero at that time.
A ball away from the centre. Move the centre of the ball to mm and use 800 detectors (20 rings by 40 azimuths). With the exact from the closed form, the reconstruction at the centre of the ball, at and at matches the true values 1, 0.8226 and 0.1724 to . With sampled data and central differences at µs, the value at the centre of the ball is 0.9989, and at µs it is 0.9956: the error falls by 4 when the step is halved. Dropping the term and keeping only changes the value at by 0.004.
Correctness
The proof in proofs/correctness.md covers the sphere in three dimensions. Exactness for the cylinder and the plane is stated by Xu and Wang (2005) and is not proved there.
- Divergence form (theorem). With , , and with the outward normal . So the formula is , the form of the formulas of Kunyansky (2007).
- Frequency form of the data (theorem). The sine and cosine transforms of the signal at are integrals of against and .
- The sphere identity (theorem). After integration over the sphere, the expansion of these kernels in spherical Bessel functions leaves the Wronskian in every term. The kernel becomes , and the integral over is the Fourier inversion formula, so the formula returns .
- Sampling (theorem). The central difference and the linear interpolation each add an error of order to , so the sampled algorithm converges as . The quadrature over the sphere adds a further error that is spectrally small for smooth signals (measurement: with 800 detectors for the ball).
Proof: On a sphere of detectors in 3D, universal back-projection is a divergence of a surface integral whose frequency kernel reduces, by the Wronskian of spherical Bessel functions, to the Fourier inversion formulafull
This file proves that the continuous formula of lines L1 to L8 is exact for a sphere of detectors in three dimensions, and bounds the error of the time sampling. Exactness for the infinite cylinder and the infinite plane is stated by Xu and Wang (2005) and is not proved here. The two-dimensional analogue is not exact.
Setting. , , and is the outward normal at . The initial pressure is smooth with compact support . The pressure solves with and . By Poisson's (Kirchhoff's) formula,
The algorithm computes, for ,
with the inward normal (line L5 is , line L6 the product with , line L8 the division by ). We use the Fourier transform .
Lemma 0 (the speed can be taken as 1). Put . Then , and with .
Proof. at , and under .
From now on and we drop the tildes.
Lemma 1 (support of the data). For , is smooth and vanishes outside an interval with . The same holds for , uniformly in together with all derivatives.
Proof. is smooth in , and the sphere of radius about meets only if . . Uniformity follows from the compactness of .
Lemma 2 (divergence form). Let . Then
Proof. . With and ,
Integrate over and divide by .
Lemma 3 (frequency form of the data). For and put and . Then, with and ,
and for
The functions and decay faster than any power of , uniformly in .
Proof. and has compact support in by Lemma 1, so integration by parts gives and . In polar coordinates about , , so , and the same with the cosine. The function is bounded there because on . The Fourier sine and cosine inversion formulas for the function , which is smooth with compact support in , give for . Take the mean of the two and divide by . Repeated integration by parts gives the decay.
Lemma 4 (the sphere identity). For and ,
where is the derivative in along .
Proof. We use three classical facts about the spherical Bessel functions , and the Legendre polynomials . (i) For , with , and , with absolute and uniform convergence, also after one derivative in , on compact subsets of . (ii) . (iii) .
By (i), on : and . Since , and . Multiply the series, integrate term by term with (ii), and write :
Their difference is by (iii), and by the second series of (i) with replaced by this is .
The identity uses the sphere twice: the normal derivative is the radial derivative, and the Wronskian (iii) is the same number at every point of . On a general surface no such cancellation takes place.
Theorem 1 (exactness on the sphere). For every , .
Proof. Fix . In Lemma 2, insert the formula for from Lemma 3 and use , so that becomes :
The derivative under the integral is allowed, and the order of the integrals may be changed, because and are uniformly for and near a fixed point of , while and decay fast (Lemma 3). Insert and from Lemma 3 and use Fubini again ( is bounded with compact support):
by Lemma 4. Finally, by Fourier inversion and polar coordinates ,
and with the last expression is .
Corollary (the solid angle). For , . So dividing by the sum of the solid angle elements (the default of line L8) or by gives the same continuous formula.
Proof. , so . Gauss's law gives for inside .
Theorem 2 (the sampled algorithm). Let the data be sampled at on a record that covers with at least one more sample, let be computed by line L1, and let be evaluated by linear interpolation. If has three bounded derivatives, then for every in the record, the value used for has the error at most plus the rounding. With exact , the only other error is the quadrature over .
Proof. By Lemma 1, is zero near both ends of the record, so the one sided differences at the ends are exact. Inside, by Taylor's theorem, is at most , so . Linear interpolation of a function with a bounded second derivative has the error at most , and the interpolated value of the perturbed samples differs from the interpolated value of the exact ones by at most the largest perturbation. Line L6 is a weighted sum with bounded, so the error of is .
In the test the error at the centre of a Gaussian ball falls from to when is halved from 0.04 to 0.02 µs, the factor 4 that Theorem 2 predicts (measurement). The quadrature over (Gauss-Legendre in times the uniform rule in , 800 detectors) reproduces the ball to when is exact (measurement).
Theorem 3 (cost). With detectors, samples per detector and image points, the algorithm takes time and space in the real-RAM model.
Proof. Line L1 costs per sample. For each of the points, lines L4 to L7 cost per detector: one distance, one solid angle element and one interpolation. The array has entries.
Complexity
In the real-RAM model, line L2 costs per sample, in total. Lines L4 to L7 cost per point and detector, in total. The array of needs space. For a volume of voxels and detectors this is , the cost of a back-projection. Fast methods based on the nonuniform FFT or on series expansions for special geometries reduce it.
Properties
- Exact on the sphere in 3D (theorem), for smooth with support inside the sphere. Exact for the infinite cylinder and plane (theorem of Xu and Wang 2005, not proved here).
- Approximate in 2D (stated in the literature, not proved here). In 2D the wave has a tail, and the exact formulas of Finch, Haltmeier and Rakesh (2007) involve an integral over all later times.
- No Fourier filter. The only filtering is the time derivative in , a local operation. This is what makes the method fast and simple to implement on any detector layout.
- Linear in the data. The map from the data to the image is linear.
- Both terms matter (measurement). Far from the detectors ( the wavelength) the term dominates and the term is a small correction. In the example the term changes the value by 0.004.
- Convergence in (theorem and measurement).
Variants and improvements
- Far field form. Dropping gives , the form of many earlier back-projection methods, valid when the detector is many wavelengths from the source.
- Other exact formulas for the sphere. Finch, Patch and Rakesh (2004) proved exact formulas in odd dimensions, and Kunyansky (2007) found a family of formulas in divergence form. Item 1 of the correctness section shows that universal back-projection on the sphere can be written in that form.
- Even dimensions. For line detectors, which integrate the pressure along a line and reduce the problem to 2D, use the formulas of Finch, Haltmeier and Rakesh (2007) instead of the 2D form of this method.
- Time reversal. Solve the wave equation backward in time with the measured data as boundary values. It works for any closed surface and for a variable speed of sound, at the cost of a full wave solver.
- Iterative and model based methods handle limited view, a variable speed of sound, the detector size and the bandwidth of the detector.
- Weighting for partial surfaces. Dividing by the sum of the solid angles that the detectors actually cover, as in line L8, partly corrects for missing parts of the surface.
When to use it
Use it when the detectors surround the object well on a sphere, a long cylinder or a large plane, the speed of sound is close to constant, and a fast direct method is needed, for example as the first image of an iterative method. Do not use it as an exact method in 2D, with a strongly varying speed of sound, or with a small aperture. Use time reversal or an iterative method there.
Pitfalls
- Limited view. With detectors on the upper half of the sphere only, the reconstruction of the ball at its centre is 0.577 instead of 1 when divided by . Divided by the sum of the solid angle elements it is 1.000 at the centre, but 0.812 instead of 0.823 and 0.149 instead of 0.172 at the other two points: the shape is wrong (measurement).
- Normal direction. must point toward the object. The wrong sign changes the sign of the image.
- Too short a record. The signal from the far side of a sphere arrives at . A shorter record cuts the back-projection for points near the far side.
- Noisy derivative. The time derivative amplifies high frequency noise. Filter the data in time, with the band of the detector, before line L2.
- Wrong time origin. in is the time since the laser pulse. A delay in the trigger changes both the time of flight and the factor in .
- Using the 3D formula in 2D. It gives artefacts and wrong values that do not go away when the sampling is refined.
Implementations
The Python code places the detectors on a sphere, simulates the pressure of a Gaussian ball from its closed form, computes by central differences, and back-projects with linear interpolation. It needs no shared helper. The tests check the Gauss-Legendre rule, the solid angles of the sphere, that the closed form solves the wave equation with zero initial velocity, exact reconstruction with the exact , the hand example at the centre, the need for both terms of , the linearity, the convergence with sampled data, and the limited view of a half sphere.
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/universal-back-projection/. The authors are listed in prov/4TK0K9.jsonl.
"""Universal back-projection for photoacoustic tomography in 3D (Xu and Wang 2005).
The initial pressure p0 starts a wave p(r, t) with speed c and zero initial
velocity. Point detectors on a closed surface record p(r0, t). The formula
p0(r) = (1 / Omega0) * sum over detectors of b(r0, |r - r0| / c) dOmega0,
b(r0, t) = 2 p(r0, t) - 2 t dp/dt(r0, t),
with the solid angle dOmega0 of each detector element seen from r, is exact for
a sphere, a cylinder and a plane in 3D (Xu and Wang 2005; Finch, Patch and
Rakesh 2004 for the sphere). This file uses a sphere of detectors.
Units in the tests: lengths in mm, times in microseconds, c = 1.54 mm/us.
"""
import math
def gauss_legendre(n):
"""Nodes and weights of the n point Gauss-Legendre rule on [-1, 1]."""
xs, ws = [], []
for i in range(1, n + 1):
x = math.cos(math.pi * (i - 0.25) / (n + 0.5))
dp = 1.0
for _ in range(100):
p0, p1 = 1.0, x
for k in range(2, n + 1):
p0, p1 = p1, ((2 * k - 1) * x * p1 - (k - 1) * p0) / k
dp = n * (x * p1 - p0) / (x * x - 1.0)
dx = p1 / dp
x -= dx
if abs(dx) < 1e-15:
break
xs.append(x)
ws.append(2.0 / ((1.0 - x * x) * dp * dp))
return xs, ws
def sphere_detectors(radius, n_theta, n_phi):
"""Detector elements on a sphere about the origin.
Returns a list of (position, inward unit normal, area). The areas are the
weights of the Gauss-Legendre rule in cos(theta) times the uniform rule in phi,
so they integrate smooth functions on the sphere with spectral accuracy.
"""
us, ws = gauss_legendre(n_theta)
dets = []
for u, w in zip(us, ws):
st = math.sqrt(1.0 - u * u)
for k in range(n_phi):
ph = 2.0 * math.pi * k / n_phi
n_out = (st * math.cos(ph), st * math.sin(ph), u)
pos = tuple(radius * a for a in n_out)
inward = tuple(-a for a in n_out)
dets.append((pos, inward, w * (2.0 * math.pi / n_phi) * radius * radius))
return dets
def solid_angle_element(r, det):
"""dOmega0 = dS0 * (n0 . (r - r0)) / |r - r0|^3 with the normal n0 toward r."""
pos, normal, area = det
d = [r[i] - pos[i] for i in range(3)]
dist = math.sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2])
return area * (normal[0] * d[0] + normal[1] * d[1] + normal[2] * d[2]) / dist ** 3, dist
def back_projection_term(p, dt):
"""b(t_k) = 2 p(t_k) - 2 t_k dp/dt(t_k) for samples p[k] at t_k = k dt.
The time derivative is a central difference inside and a one sided one at the ends.
"""
n = len(p)
b = [0.0] * n
for k in range(n):
if 0 < k < n - 1:
dpdt = (p[k + 1] - p[k - 1]) / (2.0 * dt)
elif k == 0:
dpdt = (p[1] - p[0]) / dt
else:
dpdt = (p[k] - p[k - 1]) / dt
b[k] = 2.0 * p[k] - 2.0 * (k * dt) * dpdt # @line L2
return b
def sample(b, dt, t):
"""Linear interpolation of the samples b[k] at t_k = k dt; zero outside the record."""
x = t / dt
k = int(math.floor(x))
if k < 0 or k >= len(b) - 1:
return 0.0
f = x - k
return (1.0 - f) * b[k] + f * b[k + 1]
def universal_back_projection(data, dets, dt, c, points, omega0=None):
"""Reconstruct p0 at the given points from sampled data[d][k] = p(r0_d, k dt).
omega0 is the solid angle of the whole surface seen from the point (4 pi for a
closed surface); None uses the sum of the solid angle elements instead.
"""
bs = [back_projection_term(p, dt) for p in data] # @line L1
out = []
for r in points: # @line L3
total, omega = 0.0, 0.0
for det, b in zip(dets, bs): # @line L4
d_omega, dist = solid_angle_element(r, det) # @line L5
total += d_omega * sample(b, dt, dist / c) # @line L6
omega += d_omega # @line L7
out.append(total / (omega if omega0 is None else omega0)) # @line L8
return out # @line L9
def universal_back_projection_exact_b(b_func, dets, c, points, omega0=4.0 * math.pi):
"""The same sum with b(r0, t) given as a function, without time sampling."""
out = []
for r in points:
total = 0.0
for det in dets:
d_omega, dist = solid_angle_element(r, det)
total += d_omega * b_func(det[0], dist / c)
out.append(total / omega0)
return out
# A Gaussian ball p0(x) = exp(-|x - centre|^2 / (2 s^2)) has a closed form wave.
def ball_initial_pressure(x, centre, s):
d = math.dist(x, centre)
return math.exp(-d * d / (2.0 * s * s))
def ball_pressure(x, t, centre, s, c):
"""p(x, t) = ((d - ct) g(d - ct) + (d + ct) g(d + ct)) / (2 d) with g(u) = exp(-u^2 / (2 s^2))."""
d = math.dist(x, centre)
a, b = d - c * t, d + c * t
return (a * math.exp(-a * a / (2.0 * s * s)) + b * math.exp(-b * b / (2.0 * s * s))) / (2.0 * d)
def ball_pressure_dt(x, t, centre, s, c):
"""The exact time derivative of ball_pressure."""
d = math.dist(x, centre)
a, b = d - c * t, d + c * t
def h(u):
return (1.0 - u * u / (s * s)) * math.exp(-u * u / (2.0 * s * s))
return c * (h(b) - h(a)) / (2.0 * d)
def ball_data(dets, centre, s, c, dt, nt, window=7.0):
"""Sampled pressure p(r0, k dt) for k < nt at every detector, zero where |d - ct| > window s."""
data = []
for pos, _, _ in dets:
d = math.dist(pos, centre)
row = [0.0] * nt
k_lo = max(0, int((d - window * s) / (c * dt)))
k_hi = min(nt, int((d + window * s) / (c * dt)) + 2)
for k in range(k_lo, k_hi):
row[k] = ball_pressure(pos, k * dt, centre, s, c)
data.append(row)
return data
test_universal_back_projection.py 135 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/universal-back-projection/. The authors are listed in prov/4TK0K9.jsonl.
import math
import random
from universal_back_projection import (back_projection_term, ball_data, ball_initial_pressure, ball_pressure,
ball_pressure_dt, gauss_legendre, sample, solid_angle_element,
sphere_detectors, universal_back_projection,
universal_back_projection_exact_b)
R, C, S = 10.0, 1.54, 0.8 # mm, mm/us, mm
CENTRE = (2.0, -1.0, 1.5)
POINTS = [CENTRE, (2.5, -1.0, 1.5), (3.0, 0.0, 1.0), (0.0, 0.0, 0.0)]
def _b_exact(centre):
def b(r0, t):
return 2.0 * ball_pressure(r0, t, centre, S, C) - 2.0 * t * ball_pressure_dt(r0, t, centre, S, C)
return b
def test_gauss_legendre_integrates_polynomials_exactly() -> None:
n = 7
xs, ws = gauss_legendre(n)
for deg in range(2 * n):
want = 0.0 if deg % 2 else 2.0 / (deg + 1)
assert abs(sum(w * x ** deg for x, w in zip(xs, ws)) - want) < 1e-13
def test_solid_angles_of_the_sphere() -> None:
dets = sphere_detectors(R, 20, 40)
inside = sum(solid_angle_element((0.0, 0.0, 0.0), d)[0] for d in dets)
assert abs(inside - 4.0 * math.pi) < 1e-12
off = sum(solid_angle_element((3.0, -2.0, 4.0), d)[0] for d in dets)
assert abs(off - 4.0 * math.pi) < 1e-3
outside = sum(solid_angle_element((14.0, 0.0, 0.0), d)[0] for d in dets)
assert abs(outside) < 1e-3
def test_the_forward_model_starts_at_rest_from_the_initial_pressure() -> None:
x = (4.0, 1.0, -2.0)
for y in ((2.3, -0.8, 1.1), (2.9, -1.4, 2.0), (5.0, 5.0, 5.0)):
assert abs(ball_pressure(y, 0.0, CENTRE, S, C) - ball_initial_pressure(y, CENTRE, S)) < 1e-14
assert abs(ball_pressure_dt(y, 0.0, CENTRE, S, C)) < 1e-14
# The wave equation p_tt = c^2 (p_xx + p_yy + p_zz) by finite differences.
t, h = 1.7, 1e-3
p = lambda y, s: ball_pressure(y, s, CENTRE, S, C)
ptt = (p(x, t + h) - 2 * p(x, t) + p(x, t - h)) / h ** 2
lap = 0.0
for i in range(3):
e = [0.0, 0.0, 0.0]
e[i] = h
xp = tuple(x[j] + e[j] for j in range(3))
xm = tuple(x[j] - e[j] for j in range(3))
lap += (p(xp, t) - 2 * p(x, t) + p(xm, t)) / h ** 2
assert abs(ptt - C * C * lap) < 1e-4 * max(1.0, abs(ptt))
# The time derivative agrees with a difference quotient.
d = (p(x, t + h) - p(x, t - h)) / (2 * h)
assert abs(d - ball_pressure_dt(x, t, CENTRE, S, C)) < 1e-6
def test_exact_data_on_a_sphere_give_the_initial_pressure() -> None:
dets = sphere_detectors(R, 20, 40)
out = universal_back_projection_exact_b(_b_exact(CENTRE), dets, C, POINTS)
for value, r in zip(out, POINTS):
assert abs(value - ball_initial_pressure(r, CENTRE, S)) < 1e-9
def test_centred_ball_hand_example() -> None:
# At t = R / c the detector sees p = 0 and dp/dt = -c / (2R), so b = 1.
z = (0.0, 0.0, 0.0)
t = R / C
assert abs(ball_pressure((R, 0.0, 0.0), t, z, S, C)) < 1e-100
assert abs(ball_pressure_dt((R, 0.0, 0.0), t, z, S, C) + C / (2 * R)) < 1e-15
dets = sphere_detectors(R, 6, 12)
assert abs(universal_back_projection_exact_b(_b_exact(z), dets, C, [z])[0] - 1.0) < 1e-12
def test_both_terms_of_b_are_needed() -> None:
dets = sphere_detectors(R, 20, 40)
r = POINTS[1]
far = universal_back_projection_exact_b(lambda r0, t: -2.0 * t * ball_pressure_dt(r0, t, CENTRE, S, C), dets, C, [r])[0]
assert abs(far - ball_initial_pressure(r, CENTRE, S)) > 3e-3
def test_back_projection_term_of_a_linear_signal() -> None:
dt = 0.05
p = [0.7 + 0.3 * k * dt for k in range(20)]
b = back_projection_term(p, dt)
for value in b:
assert abs(value - 1.4) < 1e-12
def test_sample_interpolates_linearly_and_is_zero_outside() -> None:
b = [0.0, 1.0, 4.0, 9.0]
assert abs(sample(b, 0.5, 0.75) - 2.5) < 1e-15
assert sample(b, 0.5, -0.1) == 0.0
assert sample(b, 0.5, 2.0) == 0.0
def test_the_back_projection_is_linear_in_the_data() -> None:
rng = random.Random(4401)
dets = sphere_detectors(R, 4, 8)
nt, dt = 40, 0.4
d1 = [[rng.gauss(0, 1) for _ in range(nt)] for _ in dets]
d2 = [[rng.gauss(0, 1) for _ in range(nt)] for _ in dets]
mix = [[2.0 * a - 3.0 * b for a, b in zip(r1, r2)] for r1, r2 in zip(d1, d2)]
pts = [(1.0, 2.0, -1.0), (0.0, -3.0, 0.5)]
u1 = universal_back_projection(d1, dets, dt, C, pts, 4 * math.pi)
u2 = universal_back_projection(d2, dets, dt, C, pts, 4 * math.pi)
um = universal_back_projection(mix, dets, dt, C, pts, 4 * math.pi)
for a, b, m in zip(u1, u2, um):
assert abs(m - (2.0 * a - 3.0 * b)) < 1e-10
def test_sampled_data_converge_with_the_square_of_the_time_step() -> None:
dets = sphere_detectors(R, 20, 40)
pts = POINTS[:2]
errors = []
for dt in (0.04, 0.02):
nt = int(2 * R / C / dt) + 3
data = ball_data(dets, CENTRE, S, C, dt, nt)
out = universal_back_projection(data, dets, dt, C, pts)
errors.append(max(abs(v - ball_initial_pressure(r, CENTRE, S)) for v, r in zip(out, pts)))
assert errors[1] < 2e-3
assert 3.0 < errors[0] / errors[1] < 5.0
def test_half_the_sphere_is_not_enough() -> None:
dets = [d for d in sphere_detectors(R, 20, 40) if d[0][2] > 0.0]
out = universal_back_projection_exact_b(_b_exact(CENTRE), dets, C, POINTS[:3])
assert abs(out[0] - 0.5771) < 1e-3
errs = [abs(v - ball_initial_pressure(r, CENTRE, S)) for v, r in zip(out, POINTS)]
assert max(errs) > 0.4
History
Finch, Patch and Rakesh (2004) proved exact inversion formulas for spherical means centred on a sphere in odd dimensions, which covers photoacoustic data on a sphere in 3D. Xu and Wang (2005) derived the universal back-projection formula from the Green's function of the wave equation and showed that it is exact for the sphere, the cylinder and the plane. Kunyansky (2007) gave a family of explicit formulas for the sphere, and Finch, Haltmeier and Rakesh (2007) gave exact formulas for even dimensions. The survey of Kuchment and Kunyansky (2008) and the review of Xu and Wang (2006) put the method among the other reconstruction methods.
References
- Minghua Xu and Lihong V. Wang, Universal back-projection algorithm for photoacoustic computed tomography, Physical Review E 71, 2005, 016706, the back-projection term b = 2p - 2t dp/dt, the solid angle weights, and exactness for spherical, cylindrical and planar surfaces (general locator)
- David Finch, Sarah K. Patch and Rakesh, Determining a function from its mean values over a family of spheres, SIAM Journal on Mathematical Analysis 35(5), 2004, 1213, exact inversion formulas for spherical means centred on a sphere in odd dimensions (general locator)
- David Finch, Markus Haltmeier and Rakesh, Inversion of spherical means and the wave equation in even dimensions, SIAM Journal on Applied Mathematics 68(2), 2007, 392, exact inversion formulas for the sphere in even dimensions, including 2D (general locator)
- Leonid A. Kunyansky, Explicit inversion formulae for the spherical mean Radon transform, Inverse Problems 23(1), 2007, 373, inversion formulas for the sphere in divergence form (general locator)
- Peter Kuchment and Leonid Kunyansky, Mathematics of thermoacoustic tomography, European Journal of Applied Mathematics 19(2), 2008, 191, survey of the model with zero initial velocity, uniqueness, inversion formulas and limited data (general locator)
- Minghua Xu and Lihong V. Wang, Photoacoustic imaging in biomedicine, Review of Scientific Instruments 77, 2006, 041101, review of photoacoustic reconstruction methods including back-projection (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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 4TK0K9 Edit this page History Report an error Markdown