Professional Documents
Culture Documents
2 - Sampling and Interpolation
2 - Sampling and Interpolation
y (i ) − y (a ) x(i ) − x(a )
=
y (b) − y (a ) x(b) − x(a)
x(i) − x(a)
y (i) = y (a) + ( y (b) − y (a))
x(b) − x(a)
y (i ) = y (a) + (1 − W ) ( y (b) − y (a))
y (i ) = W y (a ) + (1 − W ) y (b)
Up-sampling using bilinear interpolation
We are simply creating the new pixel in the target image from a
weighted average of its 4 nearest neighboring pixels in the source
image.
The weights: h, 1-h, w, 1-w are
determined by the relative position of
the new pixel compared to its
neighbors.
Cubic interpolation