Skip to content

mposysoev/rgb-wolf

Repository files navigation

Wolf Algorithm for Images

Implementation of Wolf Algorithm applied for random-generated pictures.

Wolf Algorithm

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.

Steps

  1. Generate a picture and fill it with random pixels
  2. Choose a random pixel in the picture
  3. Check if neighbor pixels have similar color
  4. Change the color of the whole cluster of similar pixels
  5. Repeat the procedure while this the picture is not one color

Results

gifka

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages