Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: pollyfillv,...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 7 Topic 5594 of 6457
Post > Topic >>

Re: pollyfillv, area of a blob, etc...

by James Kuyper <jameskuyper@[EMAIL PROTECTED] > Apr 4, 2008 at 11:03 AM

JP wrote:
> On Apr 4, 1:16 am, David Fanning <n...@[EMAIL PROTECTED]
> wrote:
>> I suppose the centroid of the polygon is the average
>> value of it vertices, or maybe the mean if you didn't
>> want to overbias outliers.
> 
> I guess you meant "the average value of it vertices, or maybe the
> MEDIAN" ??
> 
> In any case, thank you. I didn't realize that the centroid is just the
> mean of the vertices in the two dimensions.

It isn't. David's routine calculates the centroid of the vertices 
themselves; that's not the same as the centroid of the polygon that they 
define.

Consider the polygon [[0,0],[1,0],[1,1],[0,1],[0,0.5]]. It's centroid is 
clearly [0.5,0.5], the same as the one for [[0,0],[1,0],[1,1],[0,1]], 
but the vertices have a different average. Taking the mean of the 
vertices is at best an approximation.
 




 7 Posts in Topic:
pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-02 23:16:04 
Re: pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-02 23:38:44 
Re: pollyfillv, area of a blob, etc...
David Fanning <news@[E  2008-04-03 08:16:33 
Re: pollyfillv, area of a blob, etc...
JP <guerschman@[EMAIL   2008-04-03 16:08:07 
Re: pollyfillv, area of a blob, etc...
James Kuyper <jameskuy  2008-04-04 11:03:20 
Re: pollyfillv, area of a blob, etc...
David Fanning <news@[E  2008-04-04 06:31:24 
Re: pollyfillv, area of a blob, etc...
pgrigis@[EMAIL PROTECTED]  2008-04-04 07:18:51 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 21:07:10 CST 2008.