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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -