Jacquard image segmentation using Mumford-Shah model