1D and pseudo-2D hidden Markov models for image analysis : Theoretical introduction