Lecture 3 Image Resampling
Image Scaling
This image is too big to fit on the screen. How can we generate a half-sized version?
Copyright By PowCoder代写 加微信 powcoder
Source: S. sub-sampling
Throw away every other row and column to create a smaller size image
– called image sub-sampling
Source: S. pre-filtering
Gaussian 1/2
• Solution: filter the image, then subsample
Source: S. with Gaussian pre-filtering
Gaussian 1/2 G 1/4 G 1/8
• Solution: filter the image, then subsample
Source: S. with…
1/2 1/4 (2x zoom) 1/8 (4x zoom)
Source: S.
pre-filtering
• Solution: filter the image, then subsample
F0 F1 F2… subsample blur subsample
Gaussian pyramid
F0 F1 F2… blur subsample blur subsample
Upsampling
• This image is too small for this screen: • How can we make it 10 times as big? • Simplest approach:
repeat each row
and column 10 times • (“Nearest neighbor
interpolation”)
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com