Thursday, 16 July 2009

A Little Less Random

And because I was bored... Using a random walk with weighted probabilities it can be used to generate an image in an "artistic" way; separate random walks were used for red, green and blue channels, along with white to enhance contrast and reduce colour change side effects. Watch the video here.



Using random walks in this way has some interesting side effects; a "momentum" effect has to be included to prevent the walks getting stuck in local minima. Without the momentum effect the random walk effectively acts as a low frequency Fourier filter... To get the above effect a momentum effect of 0.4 (a 0.4 chance of just continuing in the same direction) was used.

Software used:
Image creation: ImageJ
Video transcoding: VLC media player

No comments:

Post a Comment