A Bayesian Approach to Model Matching with Geometric Hashing