You are on page 1of 7

Digital Image Processing

Lecture: Image resizing and interpolation


Image Resizing

• Zooming = oversampling
• Needs 2 steps:
1. Create new pixel location.
2. Assign gray level to it.
• Shrinking = undersampling = removal of rows and
columns
Zooming:
Nearest neighbor interpolation
Zooming
1. Nearest neighbor interpolation: pixel replication
• Increases the size integer number of times
• Disadvantage: zoomed images have a blocky appearance reflecting the larger
size of each effective pixel. Although the application of a smoothing filter can
reduce this pixelation effect, a more visually pleasing result can be generated
using spatial interpolation techniques. 
2. Linear Interpolation: averaging the neighbors
• Increases the size integer number of times
• This will give (2M-1)x(2N-1) sized image!

3. Bilinear interpolation
Zooming
Line
ar
Inter
polat
ion

You might also like