How to evaluate the performance of an image segmentation algorithm?

Technical