A neural network approach to robust shape classification