Re: interpolation around a contour [message #19328 is a reply to message #19326] |
Thu, 09 March 2000 00:00   |
Med Bennett
Messages: 109 Registered: April 1997
|
Senior Member |
|
|
Just curious - have you experimented with the INTERPOLATE function?
Otherwise, I can see how I would do this with brute force - i.e. loop
through the line segments making up the contour, accumulate euclidean
distance, find the interpolation interval, calculate new coords, etc.
Sounds tedious though.
Inpakala Simon wrote:
> Dear Group:
>
> This is what I have:
>
> I have an xy array of coordinates for a contour (closed contour if you
> connect the points) that has the following properties:
> - arbitrary number of coordinates, they are generally bigger than 200.
> - coordinates are irregularly spaced.
>
> This is what I need:
>
> I need to interpolate points around the old contour so that
>
> - the number of points = a power of 2 = 256
> - interpolated points are equidistantly spaced from one another.
>
> The original and interpolated contour should have the same perimeter and
> shape.
>
> I have tried IDL's technical support and their suggestions did not
> work. I have tried several permutations of TRIGRID, TRIANGULATE,
> Spline_P, and CONGRID. They do not give me the right answer. Perhaps I
> am choosing the wrong keywords?
>
> Any help would be most appreciated.
>
> Regards,
>
> Inpakala Simon
>
> ------------------------------------------------------------ ----------
> - Inpakala Simon - Senior Analyst / Programmer
> - The James Buchanan Brady Urological Institute
> - 600 N. Wolfe St.
> - Baltimore MD 21287
>
> - Voice: 410 614 3815
> - Pager: 410 283 5401
> - Fax: 410 614 8096
> - eMail isimon@bme.jhu.edu
|
|
|