implements stereo matching with q50 parameters