Image segmentation using the Mumford-Shah functional.