Stereo vision uses triangulation based on epipolar geometry to determine distance to an object.
If the images to be rectified are taken from camera pairs without geometric distortion, this calculation can easily be made with a linear transformation.