1. A method for rectifying an image, comprising: obtaining an original stereo image pair; parallelizing epipolar lines corresponding to the original stereo image pair to obtain a first transformed stereo image pair; and collinearizing epipolar lines corresponding to the first transformed stereo image pair to obtain a second transformed stereo image pair.