mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-10 21:44:10 +08:00
Radon transform example: Remove semicolons.
This commit is contained in:
@@ -31,21 +31,21 @@ image = rescale(image, scale=0.4)
|
||||
plt.figure(figsize=(8, 8.5))
|
||||
|
||||
plt.subplot(221)
|
||||
plt.title("Original");
|
||||
plt.title("Original")
|
||||
plt.imshow(image, cmap=plt.cm.Greys_r)
|
||||
|
||||
plt.subplot(222)
|
||||
projections = radon(image, theta=[0, 45, 90])
|
||||
plt.plot(projections);
|
||||
plt.plot(projections)
|
||||
plt.title("Projections at\n0, 45 and 90 degrees")
|
||||
plt.xlabel("Projection axis");
|
||||
plt.ylabel("Intensity");
|
||||
plt.xlabel("Projection axis")
|
||||
plt.ylabel("Intensity")
|
||||
|
||||
projections = radon(image)
|
||||
plt.subplot(223)
|
||||
plt.title("Radon transform\n(Sinogram)");
|
||||
plt.xlabel("Projection angle (degrees)");
|
||||
plt.ylabel("Projection axis");
|
||||
plt.title("Radon transform\n(Sinogram)")
|
||||
plt.xlabel("Projection angle (degrees)")
|
||||
plt.ylabel("Projection axis")
|
||||
plt.imshow(projections, aspect='auto')
|
||||
|
||||
reconstruction = iradon(projections)
|
||||
|
||||
Reference in New Issue
Block a user