Code covered by the BSD License  

Highlights from
Perceptually improved colormaps

image thumbnail

Perceptually improved colormaps

by

 

08 Oct 2010 (Updated )

6 perceptual colormaps with rainbow-like colors and 1 with heat colors

MakeLabPlotUsingColorspace.m
%% sRGB->Lab conversion of CubicL 
%  requires this submission: Colorspace transforamtions
%  www.mathworks.com/matlabcentral/fileexchange/28790-colorspace-transformations

cube=pmkmp(256);
L3=colorspace('RGB->Lab',cube);

%% %%  L*, a/*, and b* plots for CubicL
plot(1:1:256,L3(:,1),'k');
hold
plot(1:1:256,L3(:,2),'r');
plot(1:1:256,L3(:,3),'b');
title ('L* a* b* plots for CubicL colormap','Color','k','FontSize',14);

Contact us