(S A D(s,c(m))=(∑_(x=1,y-1)^(B,B))\[LeftBracketingBar]s[x,y]-c[x-(Subscript[m, x]),y-(Subscript[m, y])]\[RightBracketingBar],
B=16,8   or   4(2))