The equations refer to calculations made on a pair of monochromatic images taken with the use of two cameras from the set of five cameras presented in Fig. 1. Equations are valid for pairs of images which consist of an image $I0$ from the central camera and an image $Ii$ from the side camera $i$. The central image is the reference one, i.e., points of a depth map corresponds to points of this image. Matching cost functions compare parts of images specified by an aggregating window $W$. Display Formula
$ESAD,i(p,d)=\u2211b\u2208W|I0(p+b)\u2212Ii(p+b+di)|,$(1)
Display Formula$ESSD,i(p,d)=\u2211b\u2208W[I0(p+b)\u2212Ii(p+b+di)]2,$(2)
Display Formula$EZSAD,i(p,d)=\u2211b\u2208W|I0(p+b)\u2212I0(W)\xaf\u2212[Ii(p+b+di)\u2212Ii(W,di)\xaf]|,$(3)
Display Formula$EZSSD,i(p,d)=\u2211b\u2208W{I0(p+b)\u2212I0(W)\xaf\u2212[Ii(p+b+di)\u2212Ii(W,di)\xaf]}2,$(4)
Display Formula$ELSAD,i(p,d)=\u2211b\u2208W|I0(p+b)\u2212I0(W)\xafIi(W,di)\xafIi(p+b+di)|,$(5)
Display Formula$ELSSD,i(p,d)=\u2211b\u2208W[I0(p+b)\u2212I0(W)\xafIi(W,di)\xafIi(p+b+di)]2,$(6)
Display Formula$ENCC,i(p,d)=\u2211b\u2208W[I0(p+b)\xb7Ii(p+b+di)]\u2211b\u2208W[I0(p+b)2]\xb7\u2211b\u2208W[Ii(p+b+di)2],$(7)
Display Formula$EZNCC,i(p,d)=\u2211b\u2208W(J0\xb7Ji)\u2211b\u2208WJ02\xb7\u2211b\u2208WJi2J0=I0(p+b)\u2212I0(W)\xafJi=Ii(p+b+di)\u2212Ii(W,di)\xaf,$(8)
where $p$ is the location of a point, $d$ is the disparity, $I$ is the function that returns the intensity of a point in a monochromatic image, $W$ is the aggregating window, and $I\xaf$ is the average value of points included in the aggregating window located with regard to the disparity $di$.