getcolormap - returns a pre-defined colormap Usage: colormap = getcolormap(type) There are pre-defined colormaps for displaying overlap information. getcolormap returns the colormap for a particular number of ROIs in the overlap map. "type" is either 2 or 3, referring to the number of ROIs in the overlap map. $Id: getcolormap.m,v 1.3 2003/09/18 16:58:53 nknouf Exp $
This function calls:
This function is called by:
0001 function colormap = getcolormap(type) 0002 % getcolormap - returns a pre-defined colormap 0003 % 0004 % Usage: colormap = getcolormap(type) 0005 % 0006 % There are pre-defined colormaps for displaying overlap information. 0007 % getcolormap returns the colormap for a particular number of ROIs in the 0008 % overlap map. "type" is either 2 or 3, referring to the number of ROIs 0009 % in the overlap map. 0010 % 0011 % $Id: getcolormap.m,v 1.3 2003/09/18 16:58:53 nknouf Exp $ 0012 0013 switch type 0014 case 2, 0015 colormap = [0 0 0; 0016 0 0 1; 0017 1 0 0; 0018 1 1 1]; 0019 case 3, 0020 colormap = [0 0 0; 0021 0 0 1; 0022 1 0 0; 0023 1 1 0; 0024 1 0 1; 0025 0 1 0; 0026 1 0.37 0; 0027 1 1 1]; 0028 case 6, 0029 colormap = [0 0 0; 0030 0 0 1; 0031 1 0 0; 0032 1 1 0; 0033 1 1 1; 0034 1 1 1; 0035 1 1 1; 0036 1 1 1]; 0037 otherwise, 0038 oops(951); 0039 end 0040 return;