This page demonstrates how to solve a variational multiclass labeling problem. By finding the minimizer $u$ of the relaxed energy $$\int_\Omega \langle u(x),s(x)\rangle \mathrm{d}x + \lambda \mathrm{TV}(u)$$ over all functions $u:\Omega \to \Delta_L$, where $L$ is the number of labels, one obtains an "almost binary" solution, which can be thresholded if necessary.
Authors: Benedikt Loewenhauser, Kevin Schober, Jan Lellmann (lellmann@mic.uni-luebeck.de)