Image size: 600 x 450, labels: 2 Data term: based on Gaussian mixture color models of foreground and background Smoothness term: Potts model modulated by local contrast
Since this is a binary labeling problem, both graph-cut methods (swap and expansion) find the global optimum in a single iteration.
Input problem:
Result images: