Diffusion Snakes: Introducing Statistical Shape Knowledge into the Mumford–Shah functional