Re: Interpolation of a discrete 3D trajectory
- From: Jules César <utilisateur@xxxxxxxxxx>
- Date: Sun, 17 Jun 2007 15:13:32 +0200
Peter Beattie a écrit :
Hey guys,Something like
I'm looking for a way to smooth out the edges of a 3D trajectory that is
really just a sequence of points in space. I've got co-ordinates just
like these:
0.072 -0.25 0.582
-0.036 -0.25 0.644
0.036 0.338 0.104
What I would like to have now is for the trajectory not to pass through
the individual points at a sharp angle, but to have an interpolated
curve instead.
Is there a reasonably easy way from, say, a 10 co-ordinate input to get
a 90 co-ordinate output with the 8 inner nodes replaced by a 10-point
quasi-curve?
(A cookbook recipe and SciPy didn't seem to contain obvious solutions.)
newdata= FFT.inverse_real_fft(FFT.real_fft(data),newlen)*newlen/len(data)
should be enough ?
+ maybe have to add some Hanning windowing filter to keep limits clean.
.
- References:
- Interpolation of a discrete 3D trajectory
- From: Peter Beattie
- Interpolation of a discrete 3D trajectory
- Prev by Date: Re: Trivial string substitution/parser
- Next by Date: Re: sqlite3 bug??
- Previous by thread: Interpolation of a discrete 3D trajectory
- Next by thread: Re: Interpolation of a discrete 3D trajectory
- Index(es):
Relevant Pages
|