-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolation function coefficients #1
Comments
I don’t think the function listed below is mine. Sorry.
Kevin
…On Wed, Sep 18, 2019 at 6:57 AM tanajikamble13 ***@***.***> wrote:
Hi,
Thanks for sharing the work. I want to fit curved line through given
points. I am unable to understand how you chose the coefficient for
interpolation function e.g. for CatmullRom you use the following function
interpolate(double u, const Vector& P0, const Vector& P1, const Vector& P2, const Vector& P3)
{
Vector point;
point=u*u*u*((-1) * P0 + 3 * P1 - 3 * P2 + P3) / 2;
point+=u*u*(2*P0 - 5 * P1+ 4 * P2 - P3) / 2;
point+=u*((-1) * P0 + P2) / 2;
point+=P1;
return point;
}
Can I use more than four control points ? I tried with more than four
point but algorithm considering only 4 control points. Please help me, I am
waiting for you reply.
Thanks in advance !!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1?email_source=notifications&email_token=AFMB5PYYGUCYXYB2PAVXOHDQKIXUVA5CNFSM4IX7GC42YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HME2QMQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFMB5P3UIHQKXZ2XQWEOLC3QKIXUVANCNFSM4IX7GC4Q>
.
|
hi @keshwh-work, the function is yours i can confirm, here it is :
He's right after we add more points it goes bad, This is a very good library you made, best on github if you can fix this it will be great, I'm using it right now in a real time app and it works great realtime-test.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
Thanks for sharing the work. I want to fit curved line through given points. I am unable to understand how you chose the coefficient for interpolation function e.g. for CatmullRom you use the following function
Can I use more than four control points ? I tried with more than four point but algorithm considering only 4 control points. Please help me, I am waiting for you reply.
Thanks in advance !!
The text was updated successfully, but these errors were encountered: