Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!q37g2000vbi.googlegroups.com!not-for-mail
From: ImageAnalyst <imageanalyst@mailinator.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Please Help, How to calculate the area percentage of each color
Date: Thu, 11 Jun 2009 04:27:13 -0700 (PDT)
Organization: http://groups.google.com
Lines: 12
Message-ID: <d0f14eab-b6f2-402f-9aa4-79946d6ad2b6@q37g2000vbi.googlegroups.com>
References: <h0oll9$r0s$1@fred.mathworks.com> <c1d7887a-da8f-4521-baa5-9d764061ac5e@o36g2000vbi.googlegroups.com> 
	<47524990-144b-48a8-b54f-9270ca25fb05@t21g2000yqi.googlegroups.com> 
	<h0q3bp$i0u$1@fred.mathworks.com>
NNTP-Posting-Host: 75.186.70.56
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1244719633 29684 127.0.0.1 (11 Jun 2009 11:27:13 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 11 Jun 2009 11:27:13 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: q37g2000vbi.googlegroups.com; posting-host=75.186.70.56; 
	posting-account=0rLUzAkAAABojYSRC64DkTbtiSCX77HH
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; 
	Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 
	3.5.30729),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:546510


Well let me ask you this first.  You have a 2D matrix of number of
numbers (N by M like you said) for example
1 3 5
5 1 3
3 5 1
5 3 1
You didn't say a 3D array (N by M by 3) for a true color matrix.  So,
given that you have a 2D monochrome image, what are you calling the
color?  For monochrome images, the "color" or the intensity value is
called "gray level."
Do you really have a N by M by 3 matrix?  Or do you have a colormap to
go along with your indexed monochrome image?