summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plot_beams_and_faces_figure.m19
1 files changed, 17 insertions, 2 deletions
diff --git a/plot_beams_and_faces_figure.m b/plot_beams_and_faces_figure.m
index ae979c4..a63ac85 100644
--- a/plot_beams_and_faces_figure.m
+++ b/plot_beams_and_faces_figure.m
@@ -16,8 +16,23 @@ function plot_beams_and_faces_figure(border_limits, img, faces, fig_handle)
hold on;
- %% colormap
- colormap(1-gray);
+ %% color map as gradient of particular color
+ Ncolors=64; % number of colors
+ % starting values
+ hsv_s=rgb2hsv([1,0,0]);
+ hue_f = hsv_s(1);
+ sat_f = hsv_s(2);
+ val_f = hsv_s(3);
+ % stop values
+ hue_s = hue_f;
+ sat_s = 0;
+ val_s = 1;
+ hue=linspace(hue_s,hue_f, Ncolors);
+ sat=linspace(sat_s,sat_f, Ncolors);
+ val=linspace(val_s,val_f, Ncolors);
+ cmap = hsv2rgb([hue', sat', val']);
+
+ colormap( cmap );
%% plot ray images
imagesc(xc,yc, img); colorbar;