diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 09:43:18 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 09:43:18 -0400 |
commit | 6cbe9f11da4bf38e78beac3fe10ded1e72d5406c (patch) | |
tree | 9f946d7fa369c9b49de0db97346b3f2ecbd7bb0d | |
parent | 0ff8e4f6a627bae26b316c34adb7fdea174a1e82 (diff) | |
download | beam_reshape-6cbe9f11da4bf38e78beac3fe10ded1e72d5406c.tar.gz beam_reshape-6cbe9f11da4bf38e78beac3fe10ded1e72d5406c.zip |
remove square in diffraction image, it is already intensity
-rw-r--r-- | show_diffraction.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/show_diffraction.m b/show_diffraction.m index 3421b0f..84a44d0 100644 --- a/show_diffraction.m +++ b/show_diffraction.m @@ -7,7 +7,7 @@ function show_diffraction(img_source, xpos_s, ypos_s, img_target, xpos_t, ypos_t figure(1); x_s=linspace(xpos_s(1), xpos_s(end), Nx_s); y_s=linspace(ypos_s(1), ypos_s(end), Ny_s); -imagesc(x_s,y_s, abs(img_source).^2); +imagesc(x_s,y_s, abs(img_source)); colorbar; colormap('gray'); xlabel('x (m)'); ylabel('y (m)'); @@ -21,7 +21,7 @@ y_t=linspace(ypos_t(1), ypos_t(end), Ny_t); % pixel brightness correction, display dependent %gamma=1/4; gamma=1; -imagesc(x_t, y_t, (abs(img_target).^2).^(gamma)); +imagesc(x_t, y_t, (abs(img_target)).^(gamma)); colorbar; colormap('gray'); xlabel('x (m)'); ylabel('y (m)'); |