summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2011-07-07 22:05:18 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2011-07-07 22:05:18 -0400
commitcbfbf172f99f57958ad185cab7c9af375895f8e5 (patch)
tree295367480637064e3dae802394f1753781fa5169
parentff43b64a647e977c1bcc9c0ff3af1587fbfe886b (diff)
downloadwgmr-cbfbf172f99f57958ad185cab7c9af375895f8e5.tar.gz
wgmr-cbfbf172f99f57958ad185cab7c9af375895f8e5.zip
linear scale gray colormap
-rw-r--r--plot_beams_and_faces_figure.m17
1 files changed, 2 insertions, 15 deletions
diff --git a/plot_beams_and_faces_figure.m b/plot_beams_and_faces_figure.m
index cdbe5ba..ae979c4 100644
--- a/plot_beams_and_faces_figure.m
+++ b/plot_beams_and_faces_figure.m
@@ -15,23 +15,10 @@ function plot_beams_and_faces_figure(border_limits, img, faces, fig_handle)
plot(xlb,ylb,'.', xrt,yrt, '.');
hold on;
- indx_ne_zero = (img != 0);
- indx_eq_zero = (img == 0);
- %% intensity to log scale
- img( indx_ne_zero ) = log10( img(indx_ne_zero) );
- % make sure that the places with no beams get smallest image value
- smallest_intensity = min(min(img(indx_ne_zero)));
- largest_intensity = max(max(img(indx_ne_zero)));
- img( indx_eq_zero ) = smallest_intensity-(largest_intensity-smallest_intensity)*.4;
%% colormap
- Ncolors=64;
- R=linspace(0.3,1.0, Ncolors);
- G=R*0;
- B=R*0;
- % no beams will be white
- R(1)=1; G(1)=1; B(1)=1;
- colormap([R',G',B']);
+ colormap(1-gray);
+
%% plot ray images
imagesc(xc,yc, img); colorbar;
hold on;