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.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1Tdj9tAZbyWMWVpTp-twkraOkoko3vPS9BnO_55g6RUXIexV2nbg9ny0GsBg9j1hoqxiQjz_obB9YyOlbvGRqJFmv0YGHOtid6U5x14rzp36K4yiUnM8rhoCrmG8OFPcttzkapGD9xbU/s400/RGBKHalf1.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEgtk68AxTfQU0P8LSi8hp4Wp9903zyqw8stT5c9PWWspKc0ARbvVVH8n0fPoOFhEJkK3JiLFG4aT0gc8Q4g9DjHPweGLCEjvXy0jR8tDPvzushpS4OH7yCdC9pH-9Cw64RasQzMPG6bQ/s400/RGBKHalf2.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji2fPavsNB5WVjeJM3Hrg-ZJXhFnLhZwHnMKpGtpMCzjdydDdBBq1wOA6_L-LID-IWRkQLU7NCVGfzy5qssv4n6WSFP8CcGSTfx9kQXIlzFD4pTsE2KoXi6DB4saF7xH807z72lm5smII/s400/RGBKHalf3.jpg)
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEih48IteYd59yMaar3XaiVnaMRHFhaAGOqmstw1vA7KF1G0whooyyp5Q3-qVXyYgArKXxLh2ggpqNADBM1SQaYI5qm7ViEDKTMyMH8pLclrofLzIaQIhBHyaGqlcv9TWeiDiOMrbHVbaac/s400/RGBKHalf4.jpg)
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:
ImageJVideo transcoding:
VLC media player
No comments:
Post a Comment
Note: only a member of this blog may post a comment.