The result of the above correlation is a cube containing the correlation coefficients as shown in Fig. 1(a). The size of the cube depends upon the image size and the disparity range (2w+1).