Get from Ico-github-logo

Highlights from
SC - powerful image rendering

  • autumn(varargin)
    AUTUMN Red-yellow colormap
  • bled(varargin)
    BLED Black to red variation of the hsv colormap
  • bone(varargin)
    BONE Black-blue-white colormap
  • bright(varargin)
    BRIGHT Black-bright-white colormap
  • cold(varargin)
    COLD Black-blue-cyan-white colormap
  • colormap_helper(map, len,...
    COLORMAP_HELPER Helper function for colormaps
  • cool(varargin)
    COOL Cyan-magenta colormap
  • copper(varargin)
    COPPER Black-copper colormap
  • copper2(varargin)
    COPPER2 Black-copper-white colormap
  • disco(varargin)
    DISCO High contrast colormap with strong gradient discontinuities
  • disparity(varargin)
    DISPARITY High contrast colormap with subtle gradient discontinuities
  • dusk(varargin)
    DUSK Black-blue-green-gray-red-yellow-white colormap
  • earth(varargin)
    EARTH Black-green-white colormap
  • gray(varargin)
    GRAY Black-white colormap
  • hicontrast(varargin)
    HICONTRAST Black-blue-red-magenta-green-cyan-yellow-white colormap
  • hot(varargin)
    HOT Black-red-yellow-white colormap
  • hsv(varargin)
    HSV Red-yellow-green-cyan-blue-magenta-red colormap
  • hsv2(varargin)
    HSV2 Black to red variation of the hsv colormap
  • imdisp(I, varargin)
    IMDISP Display one or more images nicely
  • imsc(varargin)
    IMSC Wrapper function to SC which replicates display behaviour of IMAGESC
  • jet(varargin)
    JET Variant of HSV colormap
  • pastel(varargin)
    PASTEL Black-pastel-white colormap
  • pink(len, varargin)
    PINK Black-pink-white colormap
  • pink2(varargin)
    PINK2 Black-pink-white colormap
  • real2rgb(A, cmap, lims)
    REAL2RGB Converts a real-valued matrix into a truecolor image
  • rescale(A, lims, out_lims)
    RESCALE Linearly rescale values in an array
  • sc(I, varargin)
    SC Display/output truecolor images with a range of colormaps
  • sepia(varargin)
    SEPIA Black-brown-white colormap
  • spring(varargin)
    SPRING Magenta-yellow colormap
  • summer(varargin)
    SUMMER Green-yellow colormap
  • temp(varargin)
    TEMP Blue-pale-dark red colormap
  • thermal(varargin)
    THERMAL Black-purple-red-yellow-white colormap
  • whed(varargin)
    WHED White to red variation of the hsv colormap
  • winter(varargin)
    WINTER Blue-green colormap
  • View all files
image thumbnail

SC - powerful image rendering

by

 

04 Sep 2007 (Updated )

Useful tool for rendering and outputting information rich images

temp(varargin)
%TEMP  Blue-pale-dark red colormap
%
% Examples:
%   map = temp
%   map = temp(len)
%   B = temp(A)
%   B = temp(A, lims)
%
% A colormap designed by Light & Bartlein for visualizing data such as
% temperature, with good contrast for colorblind viewers.
%
% The function can additionally be used to convert a real-valued array into
% a truecolor array using the colormap.
%
% IN:
%   len - Scalar length of the output colormap. If len == Inf the concise
%         table is returned. Default: len = size(get(gcf, 'Colormap'), 1);
%   A - Non-scalar numeric array of real values to be converted into
%       truecolor.
%   lims - 1x2 array of saturation limits to be used on A. Default:
%          [min(A(:)) max(A(:))].
%
% OUT:
%   map - (len)x3 colormap table.
%   B - size(A)x3 truecolor array.

% Copyright: Oliver Woodford, 2009

% Reference:
% A. Light & P.J. Bartlein, "The End of the Rainbow? Color Schemes for
% Improved Data Graphics", EOS Transactions of the American Geophysical
% Union, Vol. 85, No. 40, 5 October 2004.
% http://geography.uoregon.edu/datagraphics/EOS/index.htm

function map = temp(varargin)
map = [0.142 0 0.850; 0.097 0.112 0.970; 0.160 0.342 1;...
       0.24 0.531 1; 0.34 0.692 1; 0.46 0.829 1;...
       0.6 0.92 1; 0.74 0.978 1; 0.92 1 1; 1 1 0.92;...
       1 0.948 0.74; 1 0.84 0.6; 1 0.676 0.46; 1 0.472 0.34;...
       1 0.24 0.24; 0.97 0.155 0.21; 0.85 0.085 0.187;...
       0.65 0 0.13];
map = colormap_helper(map, varargin{:});

Contact us