fix displaying indexed images
author |
Jaroslav Hajek <highegg@gmail.com> |
date |
Wed, 27 May 2009 08:37:46 +0200 (2009-05-27) |
parents |
a9c4aece8c2a |
children |
f9ac007bb926 |
files |
scripts/ChangeLog scripts/image/imshow.m |
diffstat |
2 files changed, 6 insertions(+), 2 deletions(-)
[+]
|
line diff
--- a/scripts/ChangeLog
+++ b/scripts/ChangeLog
@@ -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
+++ 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