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

Home » Public Forums » archive » match_2d
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: match_2d [message #66363 is a reply to message #66227] Wed, 29 April 2009 13:29 Go to previous messageGo to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
On Apr 28, 10:44 pm, Jeremy Bailin <astroco...@gmail.com> wrote:
> On Apr 27, 3:06 pm, JDS <jdtsmith.nos...@yahoo.com> wrote:
>
>>> I'm pretty sure there's a HIST_ND-based algorithm of doing this
>>> similar toMATCH_2Dbut taking spherical trig into account, but I
>>> don't have the patience to figure it out.
>
>> That would be challenging for the whole sphere, since histogram can
>> only evaluate monotonic coordinate fields.  You can always first remap
>> your coordinates using some projection which puts the ill-behaved
>> parts (nominally, the poles) far away, and preserves distance
>> locally.  For example, if you have a small field (a degree or so) near
>> the pole, this would be a nice way of solving the converging longitude
>> lines issues.  But generally?  Sounds tough.
>
>> JD
>
> How about if it was done in 3D? Instead of 2D angular coordinates, use
> the 3D coordinates of the relevant points on the surface of a unit
> sphere, and then use HIST_ND to determine which 3D bin the points are
> in and build the algorithm analogously to MATCH_2D?
>
> The main problem I see is that, for small bin sizes (ie. small desired
> angular separations), there's a lot of wasted memory storing the
> histogram in locations that don't lie on the surface of the sphere and
> therefore are necessarily zero. But maybe there's a way of enumerating
> the bins that do contain part of the surface - if so, then you could
> use that enumeration to map the 3D positions into a simple number that
> you can run HISTOGRAM on.

I thought of that and rejected it for the reason you mention. The
vast majority of memory would be devoted to empty volume, and as the
resolution grew, the fraction of wasted memory would grow as well.
The mapping you describe to do away with the empty space is equivalent
to spherical projection, for which there is no unique mapping for the
whole sphere. One possibility would be to project iteratively,
forming low distortion projections over the sphere to push the poles
off out of the way, matching against a subset of the data, rotate the
projection, repeat. Some heuristic for deciding which projection, how
large, and where to center it, would be needed.

At some point, it would become simpler to use pattern matching via
Delauney triangulation or other patterns formed from the target list.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to detect ellipse intersection
Next Topic: Re: How to detect ellipse intersection

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

Current Time: Fri Oct 10 11:25:50 PDT 2025

Total time taken to generate the page: 0.07722 seconds