Skip to content
Snippets Groups Projects
Commit 4787d240 authored by Vedrana Andersen Dahl's avatar Vedrana Andersen Dahl
Browse files
parents 16bce1bd edb5ec83
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ Y = center[1] + np.outer(radii,np.sin(angles)) ...@@ -28,7 +28,7 @@ Y = center[1] + np.outer(radii,np.sin(angles))
F = scipy.interpolate.interp2d(np.arange(I.shape[0]), np.arange(I.shape[1]), I) F = scipy.interpolate.interp2d(np.arange(I.shape[0]), np.arange(I.shape[1]), I)
U = np.array([F(p[0],p[1]) for p in np.c_[Y.ravel(),X.ravel()]]) U = np.array([F(p[0],p[1]) for p in np.c_[Y.ravel(),X.ravel()]])
U = U.reshape((r,a)).astype(np.uint8) U = U.reshape((r,a)).astype(np.int32)
fig, ax = plt.subplots(1,2) fig, ax = plt.subplots(1,2)
ax[0].imshow(I, cmap='gray') ax[0].imshow(I, cmap='gray')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment