2D Color Interpolation
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
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 :-) ).
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 :-) ).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement