Archived

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

2D Color Interpolation

This topic is 5317 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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