changeset 9269:06518194dba0

fix displaying indexed images
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 27 May 2009 08:37:46 +0200
parents a9c4aece8c2a
children f9ac007bb926
files scripts/ChangeLog scripts/image/imshow.m
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Wed May 27 07:43:20 2009 +0200
+++ b/scripts/ChangeLog	Wed May 27 08:37:46 2009 +0200
@@ -1,3 +1,7 @@
+2009-05-27  Jaroslav Hajek  <highegg@gmail.com>
+
+	* plot/imshow.m: Fix handling of indexed images.
+
 2009-05-26 Søren Hauberg  <hauberg@gmail.com>
 
 	* help/__makeinfo__.m: Support several @seealso's in one text. 
--- a/scripts/image/imshow.m	Wed May 27 07:43:20 2009 +0200
+++ b/scripts/image/imshow.m	Wed May 27 08:37:46 2009 +0200
@@ -160,8 +160,8 @@
     im(im > 1) = 1;
   endif
 
-  if (true_color)
-    tmp = __img__ ([], [], im);
+  if (true_color || indexed)
+    tmp = image ([], [], im);
   else
     tmp = image (round ((rows (colormap ()) - 1) * im));
   endif