Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!news.glorb.com!postnews.google.com!z9g2000yqi.googlegroups.com!not-for-mail
From: Rune Allnor <allnor@tele.ntnu.no>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Please Help, How to calculate the area percentage of each color 
	in a contour map?
Date: Thu, 11 Jun 2009 02:45:10 -0700 (PDT)
Organization: http://groups.google.com
Lines: 18
Message-ID: <420ff0ce-a618-443d-ba1d-d0c2f2155803@z9g2000yqi.googlegroups.com>
References: <h0oll9$r0s$1@fred.mathworks.com> <h0ouvg$gja$1@fred.mathworks.com> 
	<h0p79m$21s$1@fred.mathworks.com>
NNTP-Posting-Host: 77.19.0.50
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1244713511 16497 127.0.0.1 (11 Jun 2009 09:45:11 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 11 Jun 2009 09:45:11 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: z9g2000yqi.googlegroups.com; posting-host=77.19.0.50; 
	posting-account=VAp5gAkAAAAmkCze5hvZtMeedpZWNthI
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET 
	CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022),gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.soft-sys.matlab:546480


On 10 Jun, 23:07, "Bruno Luong" <b.lu...@fogale.findmycountry> wrote:
> "Lucas " <l.antispamchars.wilk...@sussex.moreantispam.ac.unitedkingdomdomainname> wrote in message <h0ouvg$gj...@fred.mathworks.com>...
> > Polyarea will help speed up the coding (not the code though) - just make sure every area you use is convex
>
> Polyarea does not require for convexity. It should work for simply connected (read no hole) polygon with arbitrary shape. There is no need for fancy triangulation either. The formula is based on algebric areas of all triangles formed by two vertices and origin. When one sum all that areas, it remains the intrinsic area of the polygon.
>
> Bruno

If I understand you correctly, this is a kind of
discretized version of Stoke's theorem? Nifty!

Rune