1. A method for rectifying a camera image, comprising: receiving, via an interface, distorted pixels of a distorted camera image; providing a compressed rectifying rule, wherein the compressed rectifying rule includes multiple displacement vector entries; decompressing the compressed rectifying rule to obtain a decompressed rectifying rule for rectifying the distorted camera image, wherein the decompressed rectifying rule includes multiple displacement vectors defining the associations between the distorted pixels and the rectified pixels; and determining, using the decompressed rectifying rule, rectified pixels of the distorted camera image from the distorted pixels; wherein during decompression, one displacement vector is determined from the multiple displacement vector entries for each of the rectified pixels.