change the dimensions by integer factors. Interpolation of order 2 doubles the size of a 1D array and quadruples the size of an image. A new value is inserted between every pair of elements. Linear filtering is used to calculate the new value. Here is an example of using a simple two-point linear interpolator.