Path: news.mathworks.com!not-for-mail
From: "Vihang Patil" <vihang_patil@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to show a gray image in a Gui axes ???
Date: Sun, 16 Mar 2008 07:09:05 +0000 (UTC)
Organization: Konem Solutions
Lines: 23
Message-ID: <frih2h$i7u$1@fred.mathworks.com>
References: <frguvc$mer$1@fred.mathworks.com>
Reply-To: "Vihang Patil" <vihang_patil@yahoo.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1205651345 18686 172.30.248.37 (16 Mar 2008 07:09:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 16 Mar 2008 07:09:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 413701
Xref: news.mathworks.com comp.soft-sys.matlab:457463


"Jan Sieh" <coronet67@gmx.de> wrote in message
<frguvc$mer$1@fred.mathworks.com>...
> 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

Probable answer could be that you are using either image()
or imagesc() instead of imshow().
If you dont have ImageProcessing ToolBox then you wont be
having imshow(). Nevertheless you can use still update
grayscale images on the axes like;
image(yourimage);
colormap(gray);
as Image Analyst pointed out
HTH
VIHANG