Interpolation
Interpolation estimates pixel values at non-integer coordinates when transforming or resizing images. It is essential in inverse warping, where the transformed coordinate usually doesn’t align with integer pixel positions.
In general, interpolation defines a function that maps continuous coordinates to pixel intensities using the discrete image as its parameter set.
- Nearest neighbor interpolation assigns to the new location the value of the pixel at the nearest integer (rounded), such that
It is the fastest and simplest interpolation method, but often produces blocky or jagged edges due to intensity jumps.
⠀- Bilinear interpolation adds smoothing by using the four nearest pixels surrounding the non-integer coordinate . Let , , , . Then,