A cortical model of object perception based on Bayesian networks and belief propagation.