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

Home » Public Forums » archive » Polywarp order
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Polywarp order [message #73943] Thu, 09 December 2010 06:39
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
I have used POLYWARP/POLY_2D successfully for many years.&nbsp;&nbsp;&nbsp;&nbsp; It seems to be robust and simple method to align images using grid points (or in astronomy to align images with different world coordinate system information).&nbsp;&nbsp;&nbsp; <br><br>But I have always been bothered by the definition of order in POLYWARP <br><br>Xi = sum over i and j of:&nbsp; Kx[i,j] * Xo^j * Yo^i<br>Yi = sum over i and j of:&nbsp; Ky[i,j] * Xo^j * Yo^i<br><br>so for second order Xi = Kx[0,0] + Kx[0,1]*Y0 + Kx[0,2]*Y0^2 + Kx[1,0]*X0 + Kx[1,1]*X0*Y0 + Kx[1,2]*X0*Y0^2 + Kx]2,0]*X0^2 + <br>Kx[2,1]*X0^2*Y0 + Kx[2,2]*X0^2*Y0^2<br><br>To me this is not a second order equation because it has cubic terms ( Kx[1,2]*X0*Y0^2 )&nbsp; and a quartic term ( Kx[2,2]*X0^2*Y0^2 ).&nbsp;&nbsp;&nbsp;&nbsp; So while POLYWARP works, I wonder if it requires more control points than necessary. &nbsp; &nbsp;&nbsp; I have successfully fit a "true" second order, such as<br><br>&nbsp; Xi = Kx[0,0] + Kx[0,1]*Y0 + Kx[0,2]*Y0^2 + Kx[1,0]*X0 + Kx[1,1]*X0*Y0 +&nbsp; Kx]2,0]*X0^2 &nbsp; .&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br><br>using mpfit2dfun to determine the Kx[i,j] and then using POLY_2d with the "extra" terms such as Kx[2,2] set to zero to transform the image.&nbsp;&nbsp;&nbsp;&nbsp; But I am not sure in what way, if any, this is a "better" solution.&nbsp;&nbsp;&nbsp; (My google searching suggests that both definitions are used, but that&nbsp; a "true" second order is more common.)&nbsp;&nbsp; --Wayne<br>
[Message index]
 
Read Message
Previous Topic: Polywarp order
Next Topic: Issue with the workbench menu

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

Current Time: Wed Oct 08 15:51:52 PDT 2025

Total time taken to generate the page: 0.00410 seconds