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 #70858 is a reply to message #70775] Fri, 07 May 2010 05:06 Go to previous messageGo to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On May 6, 11:11 am, wlandsman <wlands...@gmail.com> wrote:
>> Actually there is no error, but I can’t understand the procedure. At
>> the end output is a 1D array (match). What I want is for each pixel of
>> SAT array find the closest data from laser array (but I don’t know how
>> to do that).
>> Cheers
>> Dave
>
> In your example
>
> match=match_2d(x1,y1,x2,y2,0.008,MATCH_DISTANCE=md)
>
> 'match' gives the indices of x2,y2 which are the closest match to
> x1,y1.  So the closest point to x1[0],y1[0] is
> x2[match[0]],y2[match[0]].
>
> --Wayne

Thank you. Another question: how could I find the other points of x2-
y2 that surrounded in the search area (in this example 0.008) because
maybe there is more than 1 point.
Cheers
Dave
[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: Sat Oct 11 19:08:32 PDT 2025

Total time taken to generate the page: 0.71991 seconds