diff scripts/image/ind2rgb.m @ 11587:c792872f8942

all script files: untabify and strip trailing whitespace
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 17:35:29 -0500
parents fd0a3ac60b0e
children 984359717d71
line wrap: on
line diff
--- a/scripts/image/ind2rgb.m	Thu Jan 20 17:24:59 2011 -0500
+++ b/scripts/image/ind2rgb.m	Thu Jan 20 17:35:29 2011 -0500
@@ -43,7 +43,7 @@
   if (ndims (x) != 2 || any (x(:) != round (x(:))) || min (x(:)) < 1)
     error ("ind2rgb: X must be an indexed image");
   endif
-  
+
   ## Check the color map.
   if (ndims (map) != 2 || columns (map) != 3)
     error ("ind2rgb: MAP must be a valid colormap");
@@ -57,7 +57,7 @@
     pad = repmat (map(end,:), maxidx-rm, 1);
     map(end+1:maxidx, :) = pad;
   endif
-  
+
   ## Compute result
   [hi, wi] = size (x);
   R = reshape (map (x(:), 1), hi, wi);