1. A method, comprising: performing, by one or more computing devices: receiving a stereo image pair comprising a left image and a right image; responsive to receiving the stereo image pair, obtaining a disparity map for the stereo image pair based on differences between the left image and the right image; for each of a plurality of depth ranges indicated by the disparity map, generating a merged image that includes image data from the left image and image data from the right image at the respective depth range; and generating a new stereo image pair comprising a new left image and a new right image from one or more of the plurality of merged images.