A Hidden Markov Model approach for appearance-based 3 D object recognition