Skip to content

Commit

Permalink
Update Example_2_tiltonly.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nchimitt authored Jul 27, 2021
1 parent d923d08 commit 4f4f4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Turbulence_Sim_v1_python/Example_2_tiltonly.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def rgb2gray(rgb):
return np.dot(rgb[...,:3], [0.2989, 0.5870, 0.1140])


img = rgb2gray(plt.imread('chart.png'))
img = rgb2gray(plt.imread('./data/chart.png'))
N = 225 # size of the image -- assumed to be square (pixels)
D = 0.1 # length of aperture diameter (meters)
L = 7000 # length of propagation (meters)
Expand All @@ -36,4 +36,4 @@ def rgb2gray(rgb):
img_, _ = util.genTiltImg(img, param_obj) # generating the tilt-only image

plt.imshow(img_,cmap='gray',vmin=0,vmax=1)
plt.show()
plt.show()

0 comments on commit 4f4f4d7

Please sign in to comment.