Archived

This topic is now archived and is closed to further replies.

blp

2D Color Interpolation

Recommended Posts

Hello folks! following problem: I have a white bitmap with 3 to n points (pixels). The points have different (or same) colors. The color of the space between all of this points should be interpolated. I can only find algorithms to interpolate from the boundarys to middle, but theese dont''t work if there are points inside the boundary. I have searched very long so you are my last hope. Thank you very much bernd

Share this post


Link to post
Share on other sites
First, introduce a sufficient number of additional points along the boundary and set their color to white.

Second, connect the points so you form triangles - do a Google search on "delaunay triangulation".

Third, interpolate linearly the color in each triangle. (I''m lazy and I would get the GPU do it for me :-) ).

Share this post


Link to post
Share on other sites
hmm sounds good.
seems to be the only thing which could work for me.
thank you

Share this post


Link to post
Share on other sites