# HG changeset patch # User Jaroslav Hajek # Date 1243406266 -7200 # Node ID 06518194dba0854e47be2da32ca150fcb2651840 # Parent a9c4aece8c2aad8c4861b17a24a5ad4c98d6c0a3 fix displaying indexed images diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2009-05-27 Jaroslav Hajek + + * plot/imshow.m: Fix handling of indexed images. + 2009-05-26 Søren Hauberg * help/__makeinfo__.m: Support several @seealso's in one text. diff --git a/scripts/image/imshow.m b/scripts/image/imshow.m --- a/scripts/image/imshow.m +++ b/scripts/image/imshow.m @@ -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