Value interpolation in 2d from scattered data

Viewed 8515

I'm looking for a way to interpolate values from some 2D scattered data. I have a 3d points that represent a terrain from which I want to interpolate intermediate points. For input (X,Y) coordinates I need Z (height) value.

This article on wikipedia may also help you understand my wishes. There is a library in matlab called triscateredinterp that I think it does what I want.

What is a lightweight way to accomplish this interpolation in C++?

2 Answers
Related