Bayesian Inference in Model-Based Machine Vision