Processing CsI(Tl) 2-d matrices by means of neural networks and Markov random fields