Statistical local appearance models for object recognition