comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: data inside a circle
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: data inside a circle [message #44349] Mon, 13 June 2005 08:20 Go to previous message
Michael Wallace is currently offline  Michael Wallace
Messages: 409
Registered: December 2003
Senior Member
> In addition of Rob's suggestion, you could cull much of your data set on
> each pass before checking if it is within your circle. Determine the
> X/Y bounds of your circle and then extract that subset of data and
> operate on that.
>
> I'm walking out the door so I can't provide any pseudo code but
> hopefully this will give you an idea or two.


I was thinking the same thing. For each circle, find the bounding box
of the circle and then extract a subset of data points that are within
the bounding box. Now test if a given point of the subset is within the
circle or not. I don't know what kind of ratio you have between points
inside/outside a given circle, but if there are few points inside and
many outside, you should see a big improvement.

-Mike
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Determine if class has method/property
Next Topic: JAI and HDF

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 25 19:06:25 PDT 2025

Total time taken to generate the page: 2.00049 seconds