Professional Documents
Culture Documents
1, 10/04/13
▪ Introduction
▪ Nearest Neighbor
▪ Bilinear Interpolation
▪ Bicubic Interpolation
IMAGE RESAMPLING
∙ ∙ ∙ ∙
Visualization of
∙
∙ ∙ ∙ ∙
Techniques for Image
∙ ∙ ∙ ∙ Resampling
Bilinear
∙ ∙ ∙ ∙ interpolation ∙ ∙ ∙ ∙
∙ ∙ ∙ ∙ ∙ ∙ ∙ ∙
∙ ∙
∙ ∙ ∙ ∙ ∙ ∙ ∙ ∙
∙ ∙ ∙ ∙ Bicubic ∙ ∙ ∙ ∙
interpolation
2/3/2020 1:12 PM Image Resampling, SHM 4
Nearest Neighbor
The DN chosen will be that of the image pixel whose center is
closest to the center of the grid cell.
• From a computational standpoint, all that is required is to round off
the fractional row and column values to the nearest integer value.
A pixel is superimposed at a
fractional location (R = 619.71,
C = 493.39).
Rounding these values to the
nearest integer yields 620 and
493 for the row and column
indices.
The resampled value is 56.
Analysis ?
2/3/2020 1:12 PM Image Resampling, SHM 7
Bicubic Interpolation / Cubic Convolution
Explanation of this technique requires a little background in
sampling theory.
▪ First, an assumption is made that the original signal has been sam-
pled above the Nyquist rate, which is generally satisfied for imaging
sensors.
• The Nyquist rate is the sampling frequency required to faithfully record
the highest (spatial) frequency (/resolution) content of the scene.
▪ Given this assumption, the “sinc” function allows an (almost) exact
reconstruction of the original scene.
• If the images had an infinite num-
ber of rows and columns, and
• all pixels were used for the inter-
polation,
(radian) the sinc function would yield a per-
fect reconstruction.
2/3/2020 1:12 PM Image Resampling, SHM 8
Cubic Spline Interpolation (1)
Practically dictates that interpolations be carried out using only
small neighborhoods surrounding the interpolated pixel.
▪ A cubic spline approximation to the sinc function is the form gene-
rally used for bicubic interpolation.
Note that the cubic spline
most nearly approximates
the sinc function, whereas
bilinear and nearest-neighbor
interpolation are less f1(x)
consistent approximations.
f3(x)
f2(x)
58 54 65 65 0.07256
53 62 68 58 0.70873
rDc 0.02986 0.27662 0.82633 0.07309 60.66
51 56 59 53 0.41022
52 45 50 49 0.04639
The resultant value of 60.66 is then rounded to 61, the nearest integer.
▪ Note that again this DN value differs from both the 56 of nearest-neighbor
interpolation, and the 59 of bilinear interpolation.
2/3/2020 1:12 PM Image Resampling, SHM 12
Comparison of the Three Methods
Advantage Disadvantage
The fastest in terms of computational The resultant appearance can
time. be somewhat jagged or blocky,
Nearest- since a continuous interpolation
neighbor Not modifying the original data image, is not being performed.
which is important if remote-sensing
image classification will be performed.
The smoother appearance of the result Edges in the scene are slightly
(some high-frequency detail is filtered less distinct.
Bilinear out).
Slower than nearest-neighbor
Faster than bicubic interpolation. interpolation
The most rigorous resampling technique The slowest in terms of
on the basis of signal processing theory. computational time.
Bicubic It achieves the smooth appearance
without sacrificing a much high-
frequency (edge) detail.
Aknowledgements