comparison scripts/image/colormap.m @ 3458:d25bc039237b

[project @ 2000-01-19 09:36:14 by jwe]
author jwe
date Wed, 19 Jan 2000 09:36:28 +0000
parents e031284eea27
children 322453495d75
comparison
equal deleted inserted replaced
3457:e031284eea27 3458:d25bc039237b
61 endif 61 endif
62 endif 62 endif
63 63
64 if (! isempty (map)) 64 if (! isempty (map))
65 if (columns (map) != 3) 65 if (columns (map) != 3)
66 error ("colormap: map must have 3 columns: [R,G,B]."); 66 error ("colormap: map must have 3 columns: [R,G,B]");
67 endif 67 endif
68 if (min (min (map)) < 0 || max (max (map)) > 1) 68 if (min (min (map)) < 0 || max (max (map)) > 1)
69 error ("colormap: map must have values in [0,1]."); 69 error ("colormap: map must have values in [0,1]");
70 endif 70 endif
71 ## Set the new color map 71 ## Set the new color map
72 __current_color_map__ = map; 72 __current_color_map__ = map;
73 endif 73 endif
74 74