A bayesian approach to situated vision