Radon tests: Check the correct error metric.

This commit is contained in:
Jostein Bø Fløystad
2013-07-05 13:14:39 +02:00
parent e2a0f7fff8
commit 06857d3b92
@@ -348,8 +348,9 @@ def test_iradon_sart():
print('delta (2 iterations) =', delta)
assert delta < 0.013 * error_factor
reconstructed = iradon_sart(sinogram, theta, clip=(0, 1))
delta = np.mean(np.abs(reconstructed - image))
print('delta (1 iteration, clip) =', delta)
assert delta < 0.013 * error_factor
assert delta < 0.015 * error_factor
np.random.seed(1239867)
shifts = np.random.uniform(-3, 3, sinogram.shape[1])