An algorithm for minimizing the Mumford-Shah functional | Synapse