Model Based And Deep Learning Methods For Image Segmentation