Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p25g2000hsf.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to show a gray image in a Gui axes ???
Date: Sat, 15 Mar 2008 10:14:39 -0700 (PDT)
Organization: http://groups.google.com
Lines: 22
Message-ID: <e9efc1b5-74f7-4af1-844c-fbe6b79d4f68@p25g2000hsf.googlegroups.com>
References: <frguvc$mer$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.67.199
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1205601280 14440 127.0.0.1 (15 Mar 2008 17:14:40 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 15 Mar 2008 17:14:40 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: p25g2000hsf.googlegroups.com; posting-host=75.186.67.199; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 
Xref: news.mathworks.com comp.soft-sys.matlab:457401


On Mar 15, 12:54=A0pm, "Jan Sieh" <corone...@gmx.de> wrote:
> Hey @ all,
>
> I converted a color(rgb) *.jpg image into a gray image. When
> I want to show the image in a axes in the gui, it looks like
> a rainbow. I saved the converted image and its pefect gray.
> Why does the axes couldn?t display gray images??
>
> Hope you can help me.
>
> Greetings Jan

------------------------------------
Jan:
Check the color map.  Make sure you're using a gray color map.  Maybe
it got assigned to something else prior to you stuffing the gray scale
image in there.  Something like
imshow(myGrayScaleImageArray, []);
colormap('gray');

Regards,
ImageAnalyst