My supervisor always talks about how a problem is convex or its nonconvex and we want to convexify it. I understand that convexity gives a lot of advantages for optimization, and I understand the geometric definition of convexity. How does my supervisor know something is convex? Like a segmentation of an image for instance. And what advantages does convexity give you.