Warping

Image warping is the process of geometrically transforming an image so that pixels move to new locations according to a mapping function or transformation matrix. Warping changes the spatial arrangement of pixels, not their intensity values.

  • In forward warping, each pixel in the source image is mapped to its new position in the destination image using , such that . Although conceptually simple, forward warping is rarely used in practice because of misalignment, which may yield holes in the output image or a single pixel in receiving multiple values from .
    ⠀
  • Instead of pushing source pixels forward, inverse warping pulls values from the source to fill every pixel in the destination image, such that , and therefore . However, since typically lies between discrete pixels, its value must be interpolated from nearby samples.

Because forward warping maps pixels to irregular, non-grid positions in (some overlap while others leave holes), there’s no consistent neighborhood to sample from for interpolation. Inverse warping fixes this by sampling from the regular grid of the source image, where interpolation is well-defined.