From 4f4f4d7a6a8ff753659714ce6ecc6cb3f3c97e20 Mon Sep 17 00:00:00 2001 From: "Chimitt, Nicholas M" Date: Tue, 27 Jul 2021 15:02:09 -0400 Subject: [PATCH] Update Example_2_tiltonly.py --- Turbulence_Sim_v1_python/Example_2_tiltonly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Turbulence_Sim_v1_python/Example_2_tiltonly.py b/Turbulence_Sim_v1_python/Example_2_tiltonly.py index 4b1b805..5aaafb2 100644 --- a/Turbulence_Sim_v1_python/Example_2_tiltonly.py +++ b/Turbulence_Sim_v1_python/Example_2_tiltonly.py @@ -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) @@ -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() \ No newline at end of file + plt.show()