This is a demo showing how to use HMRF-EM-image: Copyright by Quan Wang, 2012/04/25 -> MATLAB Code Converted to Python by Saeid Moradi, 2022/01/28 Please cite: Quan Wang. HMRF-EM-image: Implementation of the Hidden Markov Random Field Model and its Expectation-Maximization Algorithm. arXiv:1207.3510 [cs.CV], 2012.