From 2a1f368bcfcb91f9a945bcd4aef87a8570efc5e8 Mon Sep 17 00:00:00 2001 From: Alexey Buzmakov Date: Sat, 19 Jul 2014 13:48:40 +0400 Subject: [PATCH] Remove endpoints from theta MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding endpoint to theta make iradon (FBP) reсonstraction worse (adding 2 vertical lines at the edge of phantom). This is misleading, that the iradon (FBP) is much worse than iradon_sart (SART) , and it is not. --- doc/examples/plot_radon_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_radon_transform.py b/doc/examples/plot_radon_transform.py index 04cf7bab..98344e8e 100644 --- a/doc/examples/plot_radon_transform.py +++ b/doc/examples/plot_radon_transform.py @@ -65,7 +65,7 @@ fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4.5)) ax1.set_title("Original") ax1.imshow(image, cmap=plt.cm.Greys_r) -theta = np.linspace(0., 180., max(image.shape), endpoint=True) +theta = np.linspace(0., 180., max(image.shape), endpoint=False) sinogram = radon(image, theta=theta, circle=True) ax2.set_title("Radon transform\n(Sinogram)") ax2.set_xlabel("Projection angle (deg)")