Boundary Detection Using Bayesian Nets