diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 17:14:53 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 17:14:53 -0400 |
commit | 240d1de52762c64e5dc6c981780b2320bfd191e4 (patch) | |
tree | 246540d25a05feb8e28bc3753fd32c93cc52796c /show_diffraction.m | |
parent | 2f4092a06c4e43218480f4d519b79454c5e64e40 (diff) | |
download | beam_reshape-240d1de52762c64e5dc6c981780b2320bfd191e4.tar.gz beam_reshape-240d1de52762c64e5dc6c981780b2320bfd191e4.zip |
added field calculation for diffracted image
Diffstat (limited to 'show_diffraction.m')
-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 84a44d0..3421b0f 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)); +imagesc(x_s,y_s, abs(img_source).^2); 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)).^(gamma)); +imagesc(x_t, y_t, (abs(img_target).^2).^(gamma)); colorbar; colormap('gray'); xlabel('x (m)'); ylabel('y (m)'); |