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

Home » Public Forums » archive » linear interpolation to form a deformation field
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: linear interpolation to form a deformation field [message #88427 is a reply to message #88419] Thu, 24 April 2014 02:14 Go to previous messageGo to previous message
g.nacarts is currently offline  g.nacarts
Messages: 148
Registered: November 2013
Senior Member
How shall I change the string array to a numeric?

I have an image and I want to use cspline, or spline (any kind of interpolation) to form a deformation field.

I get my data from the image: STRING = Array[384, 384]

I create the following:

Dx= [[1,2,1,1],[2,1,3,1],[5,8,1,2],[3,8,2,1]] - deformation field (x-coordinates)

Dy= [[1,2,3,1],[2,5,4,1],[6,8,1,3],[5,7,2,9]] - deformation field (y-coordinates)

I want to use interpolation to find the displacement in x and y direction respectively. I assume I will end up with two matrices one says the displacement in x direction and the other in the y direction.

I had a look on syntax of cspline() and spline() functions: Result = SPLINE( X, Y, T [, Sigma] [, /DOUBLE] ). It says that X and T must be monotonically increasing. I made the assumption that X is mine Dx (it might be wrong) and in my case Dx is not monotonically increasing so I don't know how to use these functions based on my data.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: xprinter
Next Topic: Re: Error detected while calling MPFIT_FDJAC2

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

Current Time: Wed Oct 08 15:16:01 PDT 2025

Total time taken to generate the page: 0.05025 seconds