Matlab function for generating disparity maps for stereo images