user1219721
user1219721

Reputation: 803

c++ 2D array non-regular grid interpolation

I got a non regular 2D array.

Here's some parts of the arrray, using "nearest neighbor" interpolation.

nearest neighbor sample Somewhere else on the grid...

I would like to go from that :

nearest neighbor interpolation to that : bicubic interpolation

I can't use bicubic interpolation, because my grid is not regular.

What can I use ? (need to be fast - realtime render...)

Upvotes: 0

Views: 2735

Answers (1)

mbaitoff
mbaitoff

Reputation: 9071

Create a Delaunay triangulation of your irregular point cloud. Interpolate the color at every pixel across the triangle interior using the values in triangle vertices.

http://en.wikipedia.org/wiki/Delaunay_triangulation

Upvotes: 1

Related Questions