mirror of
https://github.com/wassname/scikit-image.git
synced 2026-06-30 13:47:37 +08:00
Remove endpoints from theta
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.
This commit is contained in:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user