Shape from recognition and learning