Learning Shape Prior Models for Object Matching