Image segmentation has often been defined as the problem of localizing regions of an image relative to content (e.g., image homogeneity). However, recent image segmentation approaches have provided interactive methods that implicitly define the segmentation problem relative to a particular task of content localization.
The random walker algorithm determines the segmentation of an image from a set of markers labeling several phases (2 or more). An anisotropic diffusion equation is solved with tracers initiated at the markers’ position. The local diffusivity coefficient is greater if neighboring pixels have similar values, so that diffusion is difficult across high gradients. The label of each unknown pixel is attributed to the label of the known marker that has the highest probability to be reached first during this diffusion process. In this example, two phases are clearly visible, but the data are too noisy to perform the segmentation from the histogram only. We determine markers of the two phases from the extreme tails of the histogram of gray values, and use the random walker for the segmentation.
source:
Random Walks for Image Segmentation by Leo Grady
a) http://vision.cse.psu.edu/people/chenpingY/paper/grady2006random.pdf
b) http://vision.cse.psu.edu/people/chenpingY/paper/grady2006random.pdf
c) https://scikit-image.org/docs/stable/auto_examples/segmentation/plot_random_walker_segmentation.html
EM509 Stochastic Processes Project : Random Walks for image segmentation: First random walks are introduced in the order of 1D (without barriers and with barriers), 2D (without barriers and with barriers). Then Markov property is explained. The Markov property is proved for the 1D simple case and a complicated 2D case with both absorbing and reflecting barriers. Image segmentation problem is introduced from an application point of view and converted into a mathematical formulation. Random walker algorithm for image segmentation is introduced and it is proven to be a Markov process. The study is concluded by implementing the Random Walker algorithm and testing it by segmenting a set of images.
source:
1) https://github.com/gihanjayatilaka/EM509-image-segmentation-using-random-walks
2) 24 - Random Walker segmentation in Python - https://www.youtube.com/watch?v=6P8YhJa2V6o