J.  Lellmann and Schnörr, C., ?Continuous Multiclass Labeling Approaches and Algorithms?, SIAM J.~Imag.~Sci., vol. 4, pp. 1049-1096, 2011.