C# Xna interpolate edges on 2d Image like a 1d Graph -
i generated caves random walk. problem output far small , want scale 10-20 times. when every pixel becomes visible need algorithm solve this. thought sinus or cubic interpolation in 1 dimension, goes along edges , interpolates between centers of pixels... basicly height of each pixel y axis of graph. image has 2 "colors" wich black , white.
the black dot center of each pixel , red line interpolation archive: here how whole cave looks like:
is there way realise that? or impossible? wonder how solve when caves edge goes on x axis, since graph couldnt have 2 dots each x.
you can blur or antialias , posterize bw again. going smooth edges, if applied exponential smoothing function.
Comments
Post a Comment