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

Home » Public Forums » archive » Re: x-y offsets
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: x-y offsets [message #70948] Thu, 20 May 2010 13:11 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
> I think once you have a set of plausible distance pairs, it becomes
> a minimization problem. How about if, once you have a set of
> possible pairs from the "distogram" reverse_indices, you construct
> a function that calculates the total distance squared between
> all of the pairs and use something like POWELL to minimize it?

To be more specific, I would go with calculating the mean offset
using the reverse_indices to get you close, then use
MATCHALL_2D using the offset coordinates to get neighbours of
each x1,y1 pair. Then you can minimize the following function
for xoff,yoff:

Sum_i ( min( (x1_i-x2+xoff)^2 + (y1_i-y2+yoff)^2 ) )

where i runs over x1,y1 and the minimization is over all x2,y2
points that are neighbours of x1_i,y1_i.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: 2-d histogram and Routines of same name
Next Topic: Re: divise image envi-idl

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

Current Time: Fri Oct 10 04:36:43 PDT 2025

Total time taken to generate the page: 0.71997 seconds