title: Using Markov Chain to transfom a RGB image to black and white(0-1)
body: <p>I am struggling to find an answer to this question,i have not understand well Markov chain use and i would like some help:</p>
  <p>[Input image] <a href="https://i.stack.imgur.com/r9XCE.png" rel="nofollow noreferrer">https://i.stack.imgur.com/r9XCE.png</a></p>
  <p>[Output image example] <a href="https://i.stack.imgur.com/3pllU.png" rel="nofollow noreferrer">https://i.stack.imgur.com/3pllU.png</a></p>
  <p>This is what we begin with, classic.</p>
  <p>I want to transform this image in black and white only BUT i have to use Markov chain probabilities which I don't understand at all</p>
  <p>Is anyone able to give me somme hint?
  I believe that we have to pick random pixel N number of time and to apply somme proba magic to change it to black or white (based on probabilities and neighbors)</p>
  <p>thanks in advance (i'm not searching for code particulary but the logic to be implemented)</p>