User`s guide
Interpolation Overview
1 Zero pad the input matrix and translate it by 1.7 pixels to the right.
12300
45600
78900
1.7 pixels
Original zero-padded matrix
Translated zero-padded matrix
001230
004560
007890
2 Create the output matrix by replacing each input pixel value with the
translated value nearest to it. The result is the following matrix:
00123
00456
00789
Note You wanted to translate the image by 1.7 pixels, but this method
translated the image by 2 pixels. Nearest n eighbor interpolation is
computationally efficient but not as accurate as bilinear or bicubic
interpolation.
For more information, see in the Image Proces sing Toolbox documentation.
Bilinear Interpo lation
For bilinear int erpolation, th e block uses the weighted average of two
translated pixel values for each output pixel value.
For example, suppose this matrix,
5-3