Image Segmentation and Its Applications Based on the Mumford-Shah Model