A Bayesian approach to dynamic contours through stochastic sampling and simulated annealing | Synapse