Multi-label Image Segmentation for Medical Applications Based on Graph-Theoretic Electrical Potentials