Path: news.mathworks.com!newsfeed-00.mathworks.com!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!news-2.dfn.de!news.dfn.de!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: display positive indexed pixels
Date: Sun, 23 Dec 2012 10:09:26 -0600
Organization: Aioe.org NNTP Server
Lines: 29
Message-ID: <kb7ab5$ndj$1@speranza.aioe.org>
References: <kb6jr4$fag$1@newscl01ah.mathworks.com> <kb77iv$fvu$1@speranza.aioe.org>
NNTP-Posting-Host: KNVrH1J1GAb5/gkHkHdj1g.user.speranza.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: abuse@aioe.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
X-Notice: Filtered by postfilter v. 0.8.2
Xref: news.mathworks.com comp.soft-sys.matlab:785299

On 12/23/2012 9:21 AM, Nasser M. Abbasi wrote:
> On 12/23/2012 3:45 AM, Carl S. wrote:
>> Hi,
>> I have a grayscale image. I have some pixels that have values
>>
>> index: 0.329
>> RGB: 0.487 0.487 0.487
>>
>
> hi;
>
> I am not expert in image processing (took only 2 course sometime ago).
> But how could a grayscale image have RGB values?

ind2rgb(), maybe?

Just 'cuz it's a set of gray values doesn't mean there isn't an 
equivalent colormap in whatever scale one chooses...

Try

 >> plot(1:4,[1:4].^2,'color',[0.487 0.487 0.48])

or somesuch to see what OP's particular pixel looks like...

--


--