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

Home » Public Forums » archive » Re: 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 #66190 is a reply to message #66183] Wed, 22 April 2009 15:39 Go to previous messageGo to previous message
JDS is currently offline  JDS
Messages: 94
Registered: March 2009
Member
>
> Aha... I've looked at it in gory detail, and it turns out that the
> routine implicitly assumes that the minimum value of both x2 and y2
> are 0. So you can get it to work if you do the following:

Aha! Thanks for the catch. That's what you get when you evaluate an
algorithm on artificial random coordinates ranging uniformly from
[0,1].

I've updated MATCH_2D at the address mentioned to handle this issue
explicitly, and also catch cases of matching points which fall just
slightly outside the bounding box of the search set. I've also added
a much-needed warning regarding using this Euclidean matching
algorithm for points on the sphere (e.g. star positions, lat/lon,
etc.):

; WARNING:
;
; Distance is evaluated in a strict Euclidean sense. For
; points on a sphere, the distance between two given
; coordinates is *not* the Euclidean distance. As an extreme
; example, consider two points very near the N. pole, but on
; opposite sides (one due E, one due W). For small patches,
; this Euclidean assumption is approximately valid, and the
; method works. See NOTES above for a tip regarding obtaining
; a (more) uniform match criterion on the sphere.
;;

Give this version a try. By the way, the value of MATCH_DISTANCE for
points which did *not* match is not meaningful.

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Annotations of grid in map_set
Next Topic: dfanning widbarb.pro

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

Current Time: Thu Oct 09 22:04:23 PDT 2025

Total time taken to generate the page: 1.12295 seconds