SAD(x,y,d)=(∑_((i,j)∈ω))\[LeftBracketingBar]L(i,j)-R(i-d,j)\[RightBracketingBar]