comparison scripts/image/ind2rgb.m @ 11472:1740012184f9

Use uppercase for variable names in error() strings to match Info documentation. Only m-files done.
author Rik <octave@nomad.inbox5.com>
date Sun, 09 Jan 2011 21:33:04 -0800
parents c776f063fefe
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11471:994e2a93a8e2 11472:1740012184f9
40 map = colormap (); 40 map = colormap ();
41 endif 41 endif
42 42
43 ## Check if X is an indexed image. 43 ## Check if X is an indexed image.
44 if (ndims (x) != 2 || any (x(:) != round (x(:))) || min (x(:)) < 1) 44 if (ndims (x) != 2 || any (x(:) != round (x(:))) || min (x(:)) < 1)
45 error ("ind2rgb: first input argument must be an indexed image"); 45 error ("ind2rgb: X must be an indexed image");
46 endif 46 endif
47 47
48 ## Check the color map. 48 ## Check the color map.
49 if (ndims (map) != 2 || columns (map) != 3) 49 if (ndims (map) != 2 || columns (map) != 3)
50 error ("ind2rgb: second input argument must be a color map"); 50 error ("ind2rgb: MAP must be a valid colormap");
51 endif 51 endif
52 52
53 ## Do we have enough colors in the color map? 53 ## Do we have enough colors in the color map?
54 maxidx = max (x(:)); 54 maxidx = max (x(:));
55 rm = rows (map); 55 rm = rows (map);