sampling and quantization notes in image process.ppt

MichealBerdinanthM 103 views 14 slides Aug 12, 2024
Slide 1
Slide 1 of 14
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14

About This Presentation

image processing


Slide Content

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Digital Image
Processing
Sampling and Quantization

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
key stages in digital image processing
Sampling : related to coordinates values – Digitizing the
coordinate values
(Nyquist frequency)
Quantization : related to intensity values – Digitizing the
amplitude values
In order to become suitable for digital processing, an image function f(x,y)
must be digitized both spatially and in amplitude.
Typically, a frame grabber or digitizer is used to sample and quantize the
analogue video signal.
Hence in order to create an image which is digital, we need to covert
continuous data into digital form. There are two steps in Image
digitization:

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
The sampling rate determines the spatial resolution of the digitized image,
while the quantization level determines the number of grey levels in the
digitized image.
A magnitude of the sampled image is expressed as a digital value in image
processing.
The transition between continuous values of the image function and its
digital equivalent is called quantization.
The number of quantization levels should be high enough for human
perception of fine shading details in the image.
The occurrence of false contours is the main problem in image which has
been quantized with insufficient brightness levels.

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
© 2002 R. C. Gonzalez & R. E. Woods
y (intensity values)
Generating a digital image.
(a) Continuous image. (b)
A scaling line from A to B
in the continuous image,
used to illustrate the
concepts of sampling and
quantization. (c) sampling
and quantization. (d)
Digital scan line.
ab
cd

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
© 2002 R. C. Gonzalez & R. E. Woods
(a) Continuous image
projected onto a sensor
array. (b) Result of image
sampling and
quantization.
ab

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
000757575128128128128
0757575128128128255255255
757575200200200255255255200
128128128200200255255200200200
1281281282552552002002007575
175175175225225225757575100
1751751001001002252257575100
75757535353500035
35353500035353575
757575100100100200200200200

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Sampling
1024
512
256
128
64
32

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Sampling
1024 512 256
128 64 32

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Quantization
8-bit 7-bit 6-bit 5-bit
4-bit 3-bit 2-bit 1-bit

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Resizing Images
Zooming : Creating new pixel locations
Assigning gray-level values to these locations
Solution: Interpolation

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
3 main type of 2D Interpolations :
Nearest neighbor interpolation
Bilinear interpolation
Bicubic interpolation

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Image interpolation occurs when you resize or distort your image from
one pixel grid to another.
Image resizing is necessary when you need to increase or decrease the
total number of pixels, whereas remapping can occur when you are
correcting for lens distortion or rotating an image.
Zooming refers to increase the quantity of pixels, so that when you
zoom an image, you will see more detail.

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Common interpolation algorithms can be grouped into two categories:
adaptive and non-adaptive.
Adaptive methods change depending on what they are interpolating,
whereas non-adaptive methods treat all pixels equally.
Non-adaptive algorithms include: nearest neighbor, bilinear, bicubic,
spline, sinc, lanczos and others.
Adaptive algorithms include many proprietary algorithms in licensed
software such as: Qimage, PhotoZoom Pro and Genuine Fractals.

Gholamreza Anbarjafari, PhD
Video Lecturers on Digital Image Processing
Nearest
Neighbor
64 1024128 1024
Bilinear
Bicubic