Modify the z calculation according to Chromium depth camera implementation.