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 #70775 is a reply to message #66220] Thu, 06 May 2010 11:11 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
> 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
[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 23:28:57 PDT 2025

Total time taken to generate the page: 2.48138 seconds