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: what meanhere how whole cave looks like: the cave

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

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -