Assume that the planar transformation has been accomplished, and
new point co-ordinates were obtained.
The position of the pixel transformed does not in general fit
the discrete grid of the output image.
Values on the integer grid are needed.
Each pixel value in the output image can be obtained by
brightness interpolation of some neighboring non-integer samples,
transformed from the input image.
The brightness interpolation problem is usually expressed in a
dual way (by determining the brightness of the original point in the
input image that corresponds to the point in the output image lying
on the discrete raster).
Assume that we wish to compute the brightness value of the pixel
in the output image where and lie on the
discrete grid.
The co-ordinates of the point in the original image can
be obtained by inverting the transformation
(4.34)
In general the real co-ordinates after inverse
transformation do not fit the input image discrete grid, and so
brightness is not known.
To get the brightness value of the point the input image
is re-sampled or interpolated:
(4.35)
where
is the result of interpolation and is the
interpolation kernel. distinguishes different interpolation
methods.
Usually, a small neighborhood is used, outside which
is zero.