Convex non-convex image segmentation