Sign in to follow this  
thecoast47

bi-quadratic interpolation?

Recommended Posts

Recently i've been messing around with interpolation methods on scalar fields because im trying to make the scalar field of discrete points, continuous.

I think I understand how bi-linear interpolation works. To my knowledge,In order to interpolate a value(using bilinear interpolation) you have to do three "lerps" using four discrete neighbor points on the field. But when it comes to higher order interpolation methods, I'm lost. I know how to use quadratic interpolation  to interpolate a value using 3 discrete points on a function. How would I use quadratic interpolation on a scalar field?

 

Share this post


Link to post
Share on other sites

I suspect that cubic interpolation rather than quadratic interpolation is the correct tool for this job. This website (http://freespace.virgin.net/hugo.elias/models/m_perlin.htm) describes 1D cubic interpolation in the function Cubic_Interpolate.

 

To extend this to 2D, I think you would need to do 4 cubic interpolations on the horizontal, then feed in those 4 results for one final cubic interpolation for the vertical.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this