summaryrefslogtreecommitdiff
path: root/show_diffraction.m
diff options
context:
space:
mode:
Diffstat (limited to 'show_diffraction.m')
-rw-r--r--show_diffraction.m4
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)');