Implementation of Wolf Algorithm applied for random-generated pictures.
Scientists usually use this algorithm when they simulate Ising Model. This algorithm use stack for finding clusters with the same state (+1 or -1 in Ising Model). In this repository, this idea applied to images.
- Generate a picture and fill it with random pixels
- Choose a random pixel in the picture
- Check if neighbor pixels have similar color
- Change the color of the whole cluster of similar pixels
- Repeat the procedure while this the picture is not one color