diff scripts/image/imshow.m @ 4914:1c0442da75fd

[project @ 2004-07-23 16:55:13 by jwe]
author jwe
date Fri, 23 Jul 2004 16:55:13 +0000
parents 048db020498c
children 4c8a2e4e0717
line wrap: on
line diff
--- a/scripts/image/imshow.m	Fri Jul 23 16:00:49 2004 +0000
+++ b/scripts/image/imshow.m	Fri Jul 23 16:55:13 2004 +0000
@@ -69,8 +69,8 @@
   if (mvars != 3)
     I = varargin{1};
     if (iscomplex (I))
-	warning ("imshow: displaying real part of complex image");
-	I = real (I);
+      warning ("imshow: displaying real part of complex image");
+      I = real (I);
     endif      
     if (max (I(:)) <= 1)
       ## image in [0-1]; scale to [0-255]
@@ -109,9 +109,9 @@
     endif    
     if (max (tmp(:)) > 1)
       ## Normalise to [0-1].
-      r = r/255;
-      g = g/255;
-      b = b/255;
+      r = r / 255;
+      g = g / 255;
+      b = b / 255;
     endif
     [I, M] = rgb2ind (r, g, b);
   endif