Fully optimized 'stereobm_sobel'.