Warp source image to target image .
Left: source, right: target. Distribute color among neighboring pixels if pixel lands between two pixels.
Several methods are taken to conduct interpolation for resampling color pixels in inverse warping:
Nearest neighbor: Round to the nearest integer coordinate.
Bbicubic.
Sinc.
Trilinear interpolation: used in 3-d regular grid.
Linear interpolation:
Bilinear interpolation: find four integer samples nearest to , then apply bilinear interpolation: