Graphcut textures (Kwatra ’03)
x,y
||A(x,y) – B(x,y)||2 + ||A(x+1,y) – B(x+1,y)||2
x+1,y
Link cost