% Author F. Delannay

% for each component R, G, B we buil a vector of 256 values limited to [0, 1]

r=0:1/255:1;
g=0:1/255:1;
b=0:1/255:1;   % the vectors must be identical to display in gray levels

% we transpose the vectors for creating the LUT
map=[r' g' b'];
% To use the LUT
colormap(map)
