Finish stereo matching edges algorithm.